#F9EC57#F9EC57

#F9EC57 is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.7% C 0.165 H 104.3°. Best body text is #000000 at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#F9EC57
RGBrgb(249, 236, 87)
HSLhsl(55, 93%, 66%)
HSVhsv(55, 65%, 98%)
CMYKcmyk(0%, 5.2%, 65.1%, 2.4%)
CIE-LABlab(92.05, -12.53, 70.95)
CIE-LCHlch(92.05, 72.05, 100.01°)
OKLaboklab(92.72% -0.0408 0.1599)
OKLCHoklch(92.72% 0.165 104.3)
XYZxyz(70.7854, 80.8214, 20.8864)
Luminance0.8082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9EC57 #5764F9
analogous
#F99B57 #F9EC57 #B5F957
triadic
#F9EC57 #57F9EC #EC57F9
tetradic
#F9EC57 #57F99B #5764F9 #F957B5
square
#F9EC57 #57F99B #5764F9 #F957B5
split-complementary
#F9EC57 #57B5F9 #9B57F9
monochromatic
#CEBE07 #F7E51C #F9EC57 #FBF392 #FDF9CD

Accessibility & contrast

On white

1.22
#F9EC57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.16
#F9EC57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9EC57
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9EC57#FFFFFF#000000##000000
##F9EC571.001.2217.1617.16
#FFFFFF1.221.0021.0021.00
#00000017.1621.001.001.00
##00000017.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE443
Deuteranopia (green-blind)
#FFEB60
Tritanopia (blue-blind)
#FFDDCD
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f9ec57;
/* rgb */ color: rgb(249, 236, 87);
/* oklch */ color: oklch(92.7% 0.165 104.3);
Tailwind
colors: {
  custom: {
    50: '#fff18d',
    500: '#f9ec57',
    950: '#000000',
  },
}
SCSS
$custom: #f9ec57;
$custom-light: #fff18d;
$custom-dark: #000000;
JSON
{
  "hex": "#f9ec57",
  "rgb": {
    "r": 249,
    "g": 236,
    "b": 87
  },
  "hsl": {
    "h": 55.185,
    "s": 93.103,
    "l": 65.882
  },
  "oklch": {
    "l": 0.92718,
    "c": 0.16504,
    "h": 104.3
  },
  "luminance": 0.80819
}

Semantic roles & 50–950 ramp

primary
#F9EC57
secondary
#2B37CA
accent
#12E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F9EC57

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

Preview Lab → · Contrast checker → · Palette generator →

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