#F2DF8D#F2DF8D

#F2DF8D is a very light, moderate yellow. Relative luminance 0.736; OKLCH L 90.1% C 0.104 H 96.7°. Best body text is #000000 at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#F2DF8D
RGBrgb(242, 223, 141)
HSLhsl(49, 80%, 75%)
HSVhsv(49, 42%, 95%)
CMYKcmyk(0%, 7.9%, 41.7%, 5.1%)
CIE-LABlab(88.72, -4.61, 42.49)
CIE-LCHlch(88.72, 42.73, 96.19°)
OKLaboklab(90.12% -0.0121 0.1035)
OKLCHoklch(90.12% 0.104 96.7)
XYZxyz(67.8149, 73.5780, 35.8239)
Luminance0.7358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF8D #8DA0F2
analogous
#F2AC8D #F2DF8D #D2F28D
triadic
#F2DF8D #8DF2DF #DF8DF2
tetradic
#F2DF8D #8DF2AC #8DA0F2 #F28DD2
square
#F2DF8D #8DF2AC #8DA0F2 #F28DD2
split-complementary
#F2DF8D #8DD2F2 #AC8DF2
monochromatic
#E5C01F #ECD056 #F2DF8D #F8EEC4 #FCF7E4

Accessibility & contrast

On white

1.34
#F2DF8D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.72
#F2DF8D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF8D
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF8D#FFFFFF#000000##000000
##F2DF8D1.001.3415.7215.72
#FFFFFF1.341.0021.0021.00
#00000015.7221.001.001.00
##00000015.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EEDB87
Deuteranopia (green-blind)
#F4E290
Tritanopia (blue-blind)
#FFD4CB
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2df8d;
/* rgb */ color: rgb(242, 223, 141);
/* oklch */ color: oklch(90.1% 0.104 96.7);
Tailwind
colors: {
  custom: {
    50: '#f8e8af',
    500: '#f2df8d',
    950: '#000000',
  },
}
SCSS
$custom: #f2df8d;
$custom-light: #f8e8af;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df8d",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 141
  },
  "hsl": {
    "h": 48.713,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.90122,
    "c": 0.10422,
    "h": 96.7
  },
  "luminance": 0.73576
}

Semantic roles & 50–950 ramp

primary
#F2DF8D
secondary
#556CCF
accent
#31DC0A
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F2DF8D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F2DF8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva