#F0EF5C#F0EF5C

#F0EF5C is a very light, vivid yellow. Relative luminance 0.810; OKLCH L 92.6% C 0.165 H 108.9°. Best body text is #000000 at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#F0EF5C
RGBrgb(240, 239, 92)
HSLhsl(60, 83%, 65%)
HSVhsv(60, 62%, 94%)
CMYKcmyk(0%, 0.4%, 61.7%, 5.9%)
CIE-LABlab(92.15, -17.35, 68.85)
CIE-LCHlch(92.15, 71.00, 104.14°)
OKLaboklab(92.63% -0.0534 0.1564)
OKLCHoklch(92.63% 0.165 108.9)
XYZxyz(68.7356, 81.0329, 22.1433)
Luminance0.8103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EF5C #5C5DF0
analogous
#F0A55C #F0EF5C #A7F05C
triadic
#F0EF5C #5CF0EF #EF5CF0
tetradic
#F0EF5C #5CF0A5 #5C5DF0 #F05CA7
square
#F0EF5C #5CF0A5 #5C5DF0 #F05CA7
split-complementary
#F0EF5C #5CA7F0 #A55CF0
monochromatic
#C0BF12 #EBEA24 #F0EF5C #F5F594 #FAFACC

Accessibility & contrast

On white

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

On black

17.21
#F0EF5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EF5C
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EF5C#FFFFFF#000000##000000
##F0EF5C1.001.2217.2117.21
#FFFFFF1.221.0021.0021.00
#00000017.2121.001.001.00
##00000017.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE64A
Deuteranopia (green-blind)
#FFEB65
Tritanopia (blue-blind)
#FFE1D0
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f0ef5c;
/* rgb */ color: rgb(240, 239, 92);
/* oklch */ color: oklch(92.6% 0.165 108.9);
Tailwind
colors: {
  custom: {
    50: '#f8f490',
    500: '#f0ef5c',
    950: '#000000',
  },
}
SCSS
$custom: #f0ef5c;
$custom-light: #f8f490;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ef5c",
  "rgb": {
    "r": 240,
    "g": 239,
    "b": 92
  },
  "hsl": {
    "h": 59.595,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.92631,
    "c": 0.16531,
    "h": 108.9
  },
  "luminance": 0.81031
}

Semantic roles & 50–950 ramp

primary
#F0EF5C
secondary
#3233BE
accent
#07E006
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F0EF5C

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

Preview Lab → · Contrast checker → · Palette generator →

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