#F0EC5B#F0EC5B

#F0EC5B is a very light, vivid yellow. Relative luminance 0.793; OKLCH L 92.0% C 0.163 H 107.7°. Best body text is #000000 at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#F0EC5B
RGBrgb(240, 236, 91)
HSLhsl(58, 83%, 65%)
HSVhsv(58, 62%, 94%)
CMYKcmyk(0%, 1.7%, 62.1%, 5.9%)
CIE-LABlab(91.36, -15.95, 68.41)
CIE-LCHlch(91.36, 70.25, 103.12°)
OKLaboklab(92% -0.0496 0.1554)
OKLCHoklch(92% 0.163 107.7)
XYZxyz(67.8212, 79.2736, 21.6243)
Luminance0.7927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EC5B #5B5FF0
analogous
#F0A15B #F0EC5B #AAF05B
triadic
#F0EC5B #5BF0EC #EC5BF0
tetradic
#F0EC5B #5BF0A1 #5B5FF0 #F05BAA
square
#F0EC5B #5BF0A1 #5B5FF0 #F05BAA
split-complementary
#F0EC5B #5BAAF0 #A15BF0
monochromatic
#BFBA11 #EBE623 #F0EC5B #F5F293 #FAF9CB

Accessibility & contrast

On white

1.25
#F0EC5B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.85
#F0EC5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EC5B
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EC5B#FFFFFF#000000##000000
##F0EC5B1.001.2516.8516.85
#FFFFFF1.251.0021.0021.00
#00000016.8521.001.001.00
##00000016.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE349
Deuteranopia (green-blind)
#FFE964
Tritanopia (blue-blind)
#FFDECE
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f0ec5b;
/* rgb */ color: rgb(240, 236, 91);
/* oklch */ color: oklch(92.0% 0.163 107.7);
Tailwind
colors: {
  custom: {
    50: '#f8f190',
    500: '#f0ec5b',
    950: '#000000',
  },
}
SCSS
$custom: #f0ec5b;
$custom-light: #f8f190;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ec5b",
  "rgb": {
    "r": 240,
    "g": 236,
    "b": 91
  },
  "hsl": {
    "h": 58.389,
    "s": 83.24,
    "l": 64.902
  },
  "oklch": {
    "l": 0.92,
    "c": 0.16309,
    "h": 107.7
  },
  "luminance": 0.79272
}

Semantic roles & 50–950 ramp

primary
#F0EC5B
secondary
#3236BD
accent
#0CE006
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F0EC5B

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

Preview Lab → · Contrast checker → · Palette generator →

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