#F0ED42#F0ED42

#F0ED42 is a very light, vivid yellow. Relative luminance 0.795; OKLCH L 92.0% C 0.180 H 108.4°. Best body text is #000000 at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#F0ED42
RGBrgb(240, 237, 66)
HSLhsl(59, 85%, 60%)
HSVhsv(59, 73%, 94%)
CMYKcmyk(0%, 1.2%, 72.5%, 5.9%)
CIE-LABlab(91.46, -17.73, 77.67)
CIE-LCHlch(91.46, 79.66, 102.86°)
OKLaboklab(92.03% -0.057 0.1709)
OKLCHoklch(92.03% 0.18 108.4)
XYZxyz(67.2053, 79.4892, 16.9560)
Luminance0.7949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0ED42 #4245F0
analogous
#F09642 #F0ED42 #9CF042
triadic
#F0ED42 #42F0ED #ED42F0
tetradic
#F0ED42 #42F096 #4245F0 #F0429C
square
#F0ED42 #42F096 #4245F0 #F0429C
split-complementary
#F0ED42 #429CF0 #9642F0
monochromatic
#AAA70E #E3DF12 #F0ED42 #F4F27B #F9F8B3

Accessibility & contrast

On white

1.24
#F0ED42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.90
#F0ED42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0ED42
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0ED42#FFFFFF#000000##000000
##F0ED421.001.2416.9016.90
#FFFFFF1.241.0021.0021.00
#00000016.9021.001.001.00
##00000016.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE31E
Deuteranopia (green-blind)
#FFE94F
Tritanopia (blue-blind)
#FFDECC
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f0ed42;
/* rgb */ color: rgb(240, 237, 66);
/* oklch */ color: oklch(92.0% 0.180 108.4);
Tailwind
colors: {
  custom: {
    50: '#f9f282',
    500: '#f0ed42',
    950: '#000000',
  },
}
SCSS
$custom: #f0ed42;
$custom-light: #f9f282;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ed42",
  "rgb": {
    "r": 240,
    "g": 237,
    "b": 66
  },
  "hsl": {
    "h": 58.966,
    "s": 85.294,
    "l": 60
  },
  "oklch": {
    "l": 0.92025,
    "c": 0.18017,
    "h": 108.4
  },
  "luminance": 0.79487
}

Semantic roles & 50–950 ramp

primary
#F0ED42
secondary
#2B2DAB
accent
#30FC2C
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#18160B
muted
#86857E

Preview Lab

Preview with #F0ED42

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

Preview Lab → · Contrast checker → · Palette generator →

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