#F2DE5B#F2DE5B

#F2DE5B is a very light, vivid yellow. Relative luminance 0.719; OKLCH L 89.3% C 0.150 H 100.6°. Best body text is #000000 at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#F2DE5B
RGBrgb(242, 222, 91)
HSLhsl(52, 85%, 65%)
HSVhsv(52, 62%, 95%)
CMYKcmyk(0%, 8.3%, 62.4%, 5.1%)
CIE-LABlab(87.91, -8.21, 64.78)
CIE-LCHlch(87.91, 65.30, 97.22°)
OKLaboklab(89.3% -0.0277 0.1476)
OKLCHoklch(89.3% 0.15 100.6)
XYZxyz(64.6302, 71.8778, 20.3650)
Luminance0.7188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DE5B #5B6FF2
analogous
#F2925B #F2DE5B #BAF25B
triadic
#F2DE5B #5BF2DE #DE5BF2
tetradic
#F2DE5B #5BF292 #5B6FF2 #F25BBA
square
#F2DE5B #5BF292 #5B6FF2 #F25BBA
split-complementary
#F2DE5B #5BBAF2 #925BF2
monochromatic
#C3AB0F #EED322 #F2DE5B #F6E994 #FBF5CC

Accessibility & contrast

On white

1.37
#F2DE5B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.38
#F2DE5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DE5B
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DE5B#FFFFFF#000000##000000
##F2DE5B1.001.3715.3815.38
#FFFFFF1.371.0021.0021.00
#00000015.3821.001.001.00
##00000015.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D84C
Deuteranopia (green-blind)
#F7E062
Tritanopia (blue-blind)
#FFCFC2
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f2de5b;
/* rgb */ color: rgb(242, 222, 91);
/* oklch */ color: oklch(89.3% 0.150 100.6);
Tailwind
colors: {
  custom: {
    50: '#fae88f',
    500: '#f2de5b',
    950: '#000000',
  },
}
SCSS
$custom: #f2de5b;
$custom-light: #fae88f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2de5b",
  "rgb": {
    "r": 242,
    "g": 222,
    "b": 91
  },
  "hsl": {
    "h": 52.053,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.89297,
    "c": 0.15021,
    "h": 100.6
  },
  "luminance": 0.71875
}

Semantic roles & 50–950 ramp

primary
#F2DE5B
secondary
#3144C1
accent
#21E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2DE5B

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

Preview Lab → · Contrast checker → · Palette generator →

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