#F2DD5B#F2DD5B

#F2DD5B is a very light, vivid yellow. Relative luminance 0.713; OKLCH L 89.1% C 0.149 H 100.1°. Best body text is #000000 at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#F2DD5B
RGBrgb(242, 221, 91)
HSLhsl(52, 85%, 65%)
HSVhsv(52, 62%, 95%)
CMYKcmyk(0%, 8.7%, 62.4%, 5.1%)
CIE-LABlab(87.65, -7.71, 64.50)
CIE-LCHlch(87.65, 64.96, 96.81°)
OKLaboklab(89.09% -0.0263 0.147)
OKLCHoklch(89.09% 0.149 100.1)
XYZxyz(64.3654, 71.3482, 20.2767)
Luminance0.7135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DD5B #5B70F2
analogous
#F2925B #F2DD5B #BBF25B
triadic
#F2DD5B #5BF2DD #DD5BF2
tetradic
#F2DD5B #5BF292 #5B70F2 #F25BBB
square
#F2DD5B #5BF292 #5B70F2 #F25BBB
split-complementary
#F2DD5B #5BBBF2 #925BF2
monochromatic
#C3AA0F #EED122 #F2DD5B #F6E994 #FBF5CC

Accessibility & contrast

On white

1.38
#F2DD5B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.27
#F2DD5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DD5B
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DD5B#FFFFFF#000000##000000
##F2DD5B1.001.3815.2715.27
#FFFFFF1.381.0021.0021.00
#00000015.2721.001.001.00
##00000015.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D74C
Deuteranopia (green-blind)
#F6DF62
Tritanopia (blue-blind)
#FFCEC1
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f2dd5b;
/* rgb */ color: rgb(242, 221, 91);
/* oklch */ color: oklch(89.1% 0.149 100.1);
Tailwind
colors: {
  custom: {
    50: '#fae78f',
    500: '#f2dd5b',
    950: '#000000',
  },
}
SCSS
$custom: #f2dd5b;
$custom-light: #fae78f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dd5b",
  "rgb": {
    "r": 242,
    "g": 221,
    "b": 91
  },
  "hsl": {
    "h": 51.656,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.89094,
    "c": 0.14937,
    "h": 100.1
  },
  "luminance": 0.71345
}

Semantic roles & 50–950 ramp

primary
#F2DD5B
secondary
#3145C1
accent
#23E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2DD5B

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

Preview Lab → · Contrast checker → · Palette generator →

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