#F2DD7A#F2DD7A

#F2DD7A is a very light, vivid yellow. Relative luminance 0.720; OKLCH L 89.4% C 0.122 H 97.6°. Best body text is #000000 at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#F2DD7A
RGBrgb(242, 221, 122)
HSLhsl(50, 82%, 71%)
HSVhsv(50, 50%, 95%)
CMYKcmyk(0%, 8.7%, 49.6%, 5.1%)
CIE-LABlab(87.97, -5.40, 50.83)
CIE-LCHlch(87.97, 51.11, 96.06°)
OKLaboklab(89.44% -0.0162 0.121)
OKLCHoklch(89.44% 0.122 97.6)
XYZxyz(65.9893, 71.9978, 28.8296)
Luminance0.7199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DD7A #7A8FF2
analogous
#F2A17A #F2DD7A #CBF27A
triadic
#F2DD7A #7AF2DD #DD7AF2
tetradic
#F2DD7A #7AF2A1 #7A8FF2 #F27ACB
square
#F2DD7A #7AF2A1 #7A8FF2 #F27ACB
split-complementary
#F2DD7A #7ACBF2 #A17AF2
monochromatic
#DCB916 #EDCF42 #F2DD7A #F7EBB2 #FCF8E3

Accessibility & contrast

On white

1.36
#F2DD7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.40
#F2DD7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DD7A
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DD7A#FFFFFF#000000##000000
##F2DD7A1.001.3615.4015.40
#FFFFFF1.361.0021.0021.00
#00000015.4021.001.001.00
##00000015.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED871
Deuteranopia (green-blind)
#F4E07E
Tritanopia (blue-blind)
#FFD0C6
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2dd7a;
/* rgb */ color: rgb(242, 221, 122);
/* oklch */ color: oklch(89.4% 0.122 97.6);
Tailwind
colors: {
  custom: {
    50: '#f8e7a2',
    500: '#f2dd7a',
    950: '#000000',
  },
}
SCSS
$custom: #f2dd7a;
$custom-light: #f8e7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dd7a",
  "rgb": {
    "r": 242,
    "g": 221,
    "b": 122
  },
  "hsl": {
    "h": 49.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.89444,
    "c": 0.12203,
    "h": 97.6
  },
  "luminance": 0.71995
}

Semantic roles & 50–950 ramp

primary
#F2DD7A
secondary
#445CCD
accent
#2DDF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DD7A

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

Preview Lab → · Contrast checker → · Palette generator →

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