#F2F87F

A color in the Yellow, Gold family

#f2f87f is a color in the Yellow, Gold family: RGB(242, 248, 127), HSL(63°, 90%, 74%), CMYK(2%, 0%, 49%, 3%). Closest named color: khaki. Contrast is 1.13:1 on white and 18.51:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f2f87f
RGBrgb(242 248 127)
RGB (legacy)rgb(242, 248, 127)
RGB %rgb(95% 97% 50%)
HSLhsl(63 90% 74%)
HSV / HSBhsv(63, 49%, 97%)
HWBhwb(63 50% 3%)
CMYKcmyk(2%, 0%, 49%, 3%)
CIELAB (D50)lab(95.3 -14.06 56.67)
LCHlch(95.3 58.39 103.93)
OKLaboklab(0.9503 -0.0527 0.1346)
OKLCHoklch(0.9503 0.1446 111.39)
Decimal15923327

Properties

Color ToneYellow, Gold
Closest named colorkhaki ΔE 5.3
Closest web-safe color#ffff66
Hue63°
Saturation (HSL / HSV)90% / 49%
Lightness (HSL)74%
Brightness or Value (HSV)97%
Luminance (Rec.601 / Rec.709)91% / 93%
Relative luminance (WCAG)0.8754
Red / Green / Blue242 / 248 / 127

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.13:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
18.51: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 0 / -98.5 · As background with white / black text: Lc 0 / 97.5

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: #f2f87f;
  --color-brand-oklch: oklch(95.03% 0.1446 111.39);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 248 127 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2f87f] text-[#f2f87f] border-[#f2f87f]">