#F2F080

A color in the Yellow, Gold family

#f2f080 is a color in the Yellow, Gold family: RGB(242, 240, 128), HSL(59°, 81%, 73%), CMYK(0%, 1%, 47%, 5%). Closest named color: khaki. Contrast is 1.2:1 on white and 17.55:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f2f080
RGBrgb(242 240 128)
RGB (legacy)rgb(242, 240, 128)
RGB %rgb(95% 94% 50%)
HSLhsl(59 81% 73%)
HSV / HSBhsv(59, 47%, 95%)
HWBhwb(59 50% 5%)
CMYKcmyk(0%, 1%, 47%, 5%)
CIELAB (D50)lab(93.25 -10.32 53.83)
LCHlch(93.25 54.81 100.85)
OKLaboklab(0.9339 -0.0413 0.1283)
OKLCHoklch(0.9339 0.1348 107.83)
Decimal15921280

Properties

Color ToneYellow, Gold
Closest named colorkhaki ΔE 3.2
Closest web-safe color#ffff99
Hue59°
Saturation (HSL / HSV)81% / 47%
Lightness (HSL)73%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)89% / 91%
Relative luminance (WCAG)0.8276
Red / Green / Blue242 / 240 / 128

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.20:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
17.55: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 9.5 / -94.7 · As background with white / black text: Lc -11.1 / 94

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: #f2f080;
  --color-brand-oklch: oklch(93.39% 0.1348 107.83);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 240 128 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2f080] text-[#f2f080] border-[#f2f080]">