#F2DC5F#F2DC5F

#F2DC5F is a very light, vivid yellow. Relative luminance 0.709; OKLCH L 88.9% C 0.145 H 99.4°. Best body text is #000000 at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#F2DC5F
RGBrgb(242, 220, 95)
HSLhsl(51, 85%, 66%)
HSVhsv(51, 61%, 95%)
CMYKcmyk(0%, 9.1%, 60.7%, 5.1%)
CIE-LABlab(87.43, -6.95, 62.56)
CIE-LCHlch(87.43, 62.94, 96.34°)
OKLaboklab(88.93% -0.0237 0.1435)
OKLCHoklch(88.93% 0.145 99.4)
XYZxyz(64.2793, 70.8926, 21.1220)
Luminance0.7089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DC5F #5F75F2
analogous
#F2925F #F2DC5F #BFF25F
triadic
#F2DC5F #5FF2DC #DC5FF2
tetradic
#F2DC5F #5FF292 #5F75F2 #F25FBF
square
#F2DC5F #5FF292 #5F75F2 #F25FBF
split-complementary
#F2DC5F #5FBFF2 #925FF2
monochromatic
#C6AB10 #EDD026 #F2DC5F #F7E898 #FBF5D0

Accessibility & contrast

On white

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

On black

15.18
#F2DC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DC5F
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DC5F#FFFFFF#000000##000000
##F2DC5F1.001.3815.1815.18
#FFFFFF1.381.0021.0021.00
#00000015.1821.001.001.00
##00000015.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD651
Deuteranopia (green-blind)
#F5DF65
Tritanopia (blue-blind)
#FFCDC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f2dc5f;
/* rgb */ color: rgb(242, 220, 95);
/* oklch */ color: oklch(88.9% 0.145 99.4);
Tailwind
colors: {
  custom: {
    50: '#f9e691',
    500: '#f2dc5f',
    950: '#000000',
  },
}
SCSS
$custom: #f2dc5f;
$custom-light: #f9e691;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dc5f",
  "rgb": {
    "r": 242,
    "g": 220,
    "b": 95
  },
  "hsl": {
    "h": 51.02,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.8893,
    "c": 0.14539,
    "h": 99.4
  },
  "luminance": 0.7089
}

Semantic roles & 50–950 ramp

primary
#F2DC5F
secondary
#3248C4
accent
#25E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2DC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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