#F2DF7A#F2DF7A

#F2DF7A is a very light, vivid yellow. Relative luminance 0.731; OKLCH L 89.8% C 0.124 H 98.9°. Best body text is #000000 at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#F2DF7A
RGBrgb(242, 223, 122)
HSLhsl(51, 82%, 71%)
HSVhsv(51, 50%, 95%)
CMYKcmyk(0%, 7.9%, 49.6%, 5.1%)
CIE-LABlab(88.48, -6.41, 51.44)
CIE-LCHlch(88.48, 51.84, 97.10°)
OKLaboklab(89.85% -0.0191 0.1223)
OKLCHoklch(89.85% 0.124 98.9)
XYZxyz(66.5205, 73.0602, 29.0066)
Luminance0.7306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF7A #7A8DF2
analogous
#F2A37A #F2DF7A #C9F27A
triadic
#F2DF7A #7AF2DF #DF7AF2
tetradic
#F2DF7A #7AF2A3 #7A8DF2 #F27AC9
square
#F2DF7A #7AF2A3 #7A8DF2 #F27AC9
split-complementary
#F2DF7A #7AC9F2 #A37AF2
monochromatic
#DCBD16 #EDD242 #F2DF7A #F7ECB2 #FCF8E3

Accessibility & contrast

On white

1.35
#F2DF7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.61
#F2DF7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF7A
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF7A#FFFFFF#000000##000000
##F2DF7A1.001.3515.6115.61
#FFFFFF1.351.0021.0021.00
#00000015.6121.001.001.00
##00000015.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA71
Deuteranopia (green-blind)
#F5E17E
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df7a;
/* rgb */ color: rgb(242, 223, 122);
/* oklch */ color: oklch(89.8% 0.124 98.9);
Tailwind
colors: {
  custom: {
    50: '#f8e8a2',
    500: '#f2df7a',
    950: '#000000',
  },
}
SCSS
$custom: #f2df7a;
$custom-light: #f8e8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df7a",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 122
  },
  "hsl": {
    "h": 50.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.89847,
    "c": 0.12379,
    "h": 98.9
  },
  "luminance": 0.73058
}

Semantic roles & 50–950 ramp

primary
#F2DF7A
secondary
#4459CD
accent
#29DF07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DF7A

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

Preview Lab → · Contrast checker → · Palette generator →

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