#F2DF5B#F2DF5B

#F2DF5B is a very light, vivid yellow. Relative luminance 0.724; OKLCH L 89.5% C 0.151 H 101.1°. Best body text is #000000 at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#F2DF5B
RGBrgb(242, 223, 91)
HSLhsl(52, 85%, 65%)
HSVhsv(52, 62%, 95%)
CMYKcmyk(0%, 7.9%, 62.4%, 5.1%)
CIE-LABlab(88.17, -8.71, 65.05)
CIE-LCHlch(88.17, 65.63, 97.62°)
OKLaboklab(89.5% -0.0291 0.1482)
OKLCHoklch(89.5% 0.151 101.1)
XYZxyz(64.8965, 72.4106, 20.4538)
Luminance0.7241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF5B #5B6EF2
analogous
#F2935B #F2DF5B #BAF25B
triadic
#F2DF5B #5BF2DF #DF5BF2
tetradic
#F2DF5B #5BF293 #5B6EF2 #F25BBA
square
#F2DF5B #5BF293 #5B6EF2 #F25BBA
split-complementary
#F2DF5B #5BBAF2 #935BF2
monochromatic
#C3AD0F #EED422 #F2DF5B #F6EA94 #FBF5CC

Accessibility & contrast

On white

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

On black

15.48
#F2DF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF5B
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF5B#FFFFFF#000000##000000
##F2DF5B1.001.3615.4815.48
#FFFFFF1.361.0021.0021.00
#00000015.4821.001.001.00
##00000015.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D94B
Deuteranopia (green-blind)
#F8E162
Tritanopia (blue-blind)
#FFD0C3
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2df5b;
/* rgb */ color: rgb(242, 223, 91);
/* oklch */ color: oklch(89.5% 0.151 101.1);
Tailwind
colors: {
  custom: {
    50: '#fae88f',
    500: '#f2df5b',
    950: '#000000',
  },
}
SCSS
$custom: #f2df5b;
$custom-light: #fae88f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df5b",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 91
  },
  "hsl": {
    "h": 52.45,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.895,
    "c": 0.15105,
    "h": 101.1
  },
  "luminance": 0.72408
}

Semantic roles & 50–950 ramp

primary
#F2DF5B
secondary
#3143C1
accent
#20E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2DF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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