#F2DE57#F2DE57

#F2DE57 is a very light, vivid yellow. Relative luminance 0.718; OKLCH L 89.3% C 0.153 H 100.8°. Best body text is #000000 at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#F2DE57
RGBrgb(242, 222, 87)
HSLhsl(52, 86%, 65%)
HSVhsv(52, 64%, 95%)
CMYKcmyk(0%, 8.3%, 64%, 5.1%)
CIE-LABlab(87.88, -8.45, 66.40)
CIE-LCHlch(87.88, 66.94, 97.25°)
OKLaboklab(89.26% -0.0288 0.1505)
OKLCHoklch(89.26% 0.153 100.8)
XYZxyz(64.4622, 71.8107, 19.4803)
Luminance0.7181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DE57 #576BF2
analogous
#F29157 #F2DE57 #B9F257
triadic
#F2DE57 #57F2DE #DE57F2
tetradic
#F2DE57 #57F291 #576BF2 #F257B9
square
#F2DE57 #57F291 #576BF2 #F257B9
split-complementary
#F2DE57 #57B9F2 #9157F2
monochromatic
#C0A90F #EED31E #F2DE57 #F6E990 #FBF4C9

Accessibility & contrast

On white

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

On black

15.36
#F2DE57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DE57
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DE57#FFFFFF#000000##000000
##F2DE571.001.3715.3615.36
#FFFFFF1.371.0021.0021.00
#00000015.3621.001.001.00
##00000015.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2de57;
/* rgb */ color: rgb(242, 222, 87);
/* oklch */ color: oklch(89.3% 0.153 100.8);
Tailwind
colors: {
  custom: {
    50: '#fae88c',
    500: '#f2de57',
    950: '#000000',
  },
}
SCSS
$custom: #f2de57;
$custom-light: #fae88c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2de57",
  "rgb": {
    "r": 242,
    "g": 222,
    "b": 87
  },
  "hsl": {
    "h": 52.258,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.89261,
    "c": 0.15323,
    "h": 100.8
  },
  "luminance": 0.71808
}

Semantic roles & 50–950 ramp

primary
#F2DE57
secondary
#3042BE
accent
#20E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F2DE57

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

Preview Lab → · Contrast checker → · Palette generator →

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