#F0EB42#F0EB42

#F0EB42 is a very light, vivid yellow. Relative luminance 0.783; OKLCH L 91.6% C 0.178 H 107.7°. Best body text is #000000 at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#F0EB42
RGBrgb(240, 235, 66)
HSLhsl(58, 85%, 60%)
HSVhsv(58, 73%, 94%)
CMYKcmyk(0%, 2.1%, 72.5%, 5.9%)
CIE-LABlab(90.93, -16.75, 77.17)
CIE-LCHlch(90.93, 78.97, 102.25°)
OKLaboklab(91.61% -0.0543 0.1699)
OKLCHoklch(91.61% 0.178 107.7)
XYZxyz(66.6295, 78.3375, 16.7641)
Luminance0.7833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EB42 #4247F0
analogous
#F09442 #F0EB42 #9EF042
triadic
#F0EB42 #42F0EB #EB42F0
tetradic
#F0EB42 #42F094 #4247F0 #F0429E
square
#F0EB42 #42F094 #4247F0 #F0429E
split-complementary
#F0EB42 #429EF0 #9442F0
monochromatic
#AAA60E #E3DD12 #F0EB42 #F4F17B #F9F7B3

Accessibility & contrast

On white

1.26
#F0EB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.67
#F0EB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EB42
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EB42#FFFFFF#000000##000000
##F0EB421.001.2616.6716.67
#FFFFFF1.261.0021.0021.00
#00000016.6721.001.001.00
##00000016.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE21F
Deuteranopia (green-blind)
#FFE84F
Tritanopia (blue-blind)
#FFDCCB
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f0eb42;
/* rgb */ color: rgb(240, 235, 66);
/* oklch */ color: oklch(91.6% 0.178 107.7);
Tailwind
colors: {
  custom: {
    50: '#f9f182',
    500: '#f0eb42',
    950: '#000000',
  },
}
SCSS
$custom: #f0eb42;
$custom-light: #f9f182;
$custom-dark: #000000;
JSON
{
  "hex": "#f0eb42",
  "rgb": {
    "r": 240,
    "g": 235,
    "b": 66
  },
  "hsl": {
    "h": 58.276,
    "s": 85.294,
    "l": 60
  },
  "oklch": {
    "l": 0.91609,
    "c": 0.17833,
    "h": 107.7
  },
  "luminance": 0.78335
}

Semantic roles & 50–950 ramp

primary
#F0EB42
secondary
#2B2FAB
accent
#32FC2C
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#18160B
muted
#86857E

Preview Lab

Preview with #F0EB42

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

Preview Lab → · Contrast checker → · Palette generator →

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