#F0EF5A#F0EF5A

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

Color values

HEX#F0EF5A
RGBrgb(240, 239, 90)
HSLhsl(60, 83%, 65%)
HSVhsv(60, 63%, 94%)
CMYKcmyk(0%, 0.4%, 62.5%, 5.9%)
CIE-LABlab(92.13, -17.47, 69.63)
CIE-LCHlch(92.13, 71.79, 104.09°)
OKLaboklab(92.61% -0.054 0.1578)
OKLCHoklch(92.61% 0.167 108.9)
XYZxyz(68.6494, 80.9984, 21.6889)
Luminance0.8100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EF5A #5A5BF0
analogous
#F0A45A #F0EF5A #A6F05A
triadic
#F0EF5A #5AF0EF #EF5AF0
tetradic
#F0EF5A #5AF0A4 #5A5BF0 #F05AA6
square
#F0EF5A #5AF0A4 #5A5BF0 #F05AA6
split-complementary
#F0EF5A #5AA6F0 #A45AF0
monochromatic
#BEBD11 #EBEA22 #F0EF5A #F5F492 #FAFACA

Accessibility & contrast

On white

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

On black

17.20
#F0EF5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EF5A
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EF5A#FFFFFF#000000##000000
##F0EF5A1.001.2217.2017.20
#FFFFFF1.221.0021.0021.00
#00000017.2021.001.001.00
##00000017.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0ef5a;
/* rgb */ color: rgb(240, 239, 90);
/* oklch */ color: oklch(92.6% 0.167 108.9);
Tailwind
colors: {
  custom: {
    50: '#f8f48f',
    500: '#f0ef5a',
    950: '#000000',
  },
}
SCSS
$custom: #f0ef5a;
$custom-light: #f8f48f;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ef5a",
  "rgb": {
    "r": 240,
    "g": 239,
    "b": 90
  },
  "hsl": {
    "h": 59.6,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.92614,
    "c": 0.16678,
    "h": 108.9
  },
  "luminance": 0.80996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F0EF5A

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

Preview Lab → · Contrast checker → · Palette generator →

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