#F2DF5F#F2DF5F

#F2DF5F is a very light, vivid yellow. Relative luminance 0.725; OKLCH L 89.5% C 0.148 H 100.9°. Best body text is #000000 at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#F2DF5F
RGBrgb(242, 223, 95)
HSLhsl(52, 85%, 66%)
HSVhsv(52, 61%, 95%)
CMYKcmyk(0%, 7.9%, 60.7%, 5.1%)
CIE-LABlab(88.20, -8.45, 63.40)
CIE-LCHlch(88.20, 63.96, 97.60°)
OKLaboklab(89.54% -0.028 0.1452)
OKLCHoklch(89.54% 0.148 100.9)
XYZxyz(65.0737, 72.4815, 21.3868)
Luminance0.7248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF5F #5F72F2
analogous
#F2955F #F2DF5F #BBF25F
triadic
#F2DF5F #5FF2DF #DF5FF2
tetradic
#F2DF5F #5FF295 #5F72F2 #F25FBB
square
#F2DF5F #5FF295 #5F72F2 #F25FBB
split-complementary
#F2DF5F #5FBBF2 #955FF2
monochromatic
#C6AF10 #EDD426 #F2DF5F #F7EA98 #FBF6D0

Accessibility & contrast

On white

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

On black

15.50
#F2DF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF5F
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF5F#FFFFFF#000000##000000
##F2DF5F1.001.3615.5015.50
#FFFFFF1.361.0021.0021.00
#00000015.5021.001.001.00
##00000015.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D951
Deuteranopia (green-blind)
#F8E166
Tritanopia (blue-blind)
#FFD0C4
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2df5f;
/* rgb */ color: rgb(242, 223, 95);
/* oklch */ color: oklch(89.5% 0.148 100.9);
Tailwind
colors: {
  custom: {
    50: '#f9e891',
    500: '#f2df5f',
    950: '#000000',
  },
}
SCSS
$custom: #f2df5f;
$custom-light: #f9e891;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df5f",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 95
  },
  "hsl": {
    "h": 52.245,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.89538,
    "c": 0.14791,
    "h": 100.9
  },
  "luminance": 0.72479
}

Semantic roles & 50–950 ramp

primary
#F2DF5F
secondary
#3245C4
accent
#21E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2DF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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