#F2E596

A color in the Yellow, Gold family

#f2e596 is a color in the Yellow, Gold family: RGB(242, 229, 150), HSL(52°, 78%, 77%), CMYK(0%, 5%, 38%, 5%). Closest named color: khaki. Contrast is 1.28:1 on white and 16.42:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#f2e596
RGBrgb(242 229 150)
RGB (legacy)rgb(242, 229, 150)
RGB %rgb(95% 90% 59%)
HSLhsl(52 78% 77%)
HSV / HSBhsv(52, 38%, 95%)
HWBhwb(52 59% 5%)
CMYKcmyk(0%, 5%, 38%, 5%)
CIELAB (D50)lab(90.68 -3.58 40.2)
LCHlch(90.68 40.36 95.09)
OKLaboklab(0.9147 -0.0174 0.0985)
OKLCHoklch(0.9147 0.1 100.04)
Decimal15918486

Properties

Color ToneYellow, Gold
Closest named colorkhaki ΔE 1.3
Closest web-safe color#ffcc99
Hue52°
Saturation (HSL / HSV)78% / 38%
Lightness (HSL)77%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)88% / 89%
Relative luminance (WCAG)0.7712
Red / Green / Blue242 / 229 / 150

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.28:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
16.42:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 13.8 / -90.1 · As background with white / black text: Lc -15.9 / 89.8

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #f2e596;
  --color-brand-oklch: oklch(91.47% 0.1 100.04);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 229 150 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2e596] text-[#f2e596] border-[#f2e596]">