#F0EB5C#F0EB5C

#F0EB5C is a very light, vivid yellow. Relative luminance 0.787; OKLCH L 91.8% C 0.161 H 107.3°. Best body text is #000000 at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#F0EB5C
RGBrgb(240, 235, 92)
HSLhsl(58, 83%, 65%)
HSVhsv(58, 62%, 94%)
CMYKcmyk(0%, 2.1%, 61.7%, 5.9%)
CIE-LABlab(91.11, -15.40, 67.74)
CIE-LCHlch(91.11, 69.47, 102.81°)
OKLaboklab(91.8% -0.0479 0.1541)
OKLCHoklch(91.8% 0.161 107.3)
XYZxyz(67.5775, 78.7167, 21.7573)
Luminance0.7872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EB5C #5C61F0
analogous
#F0A15C #F0EB5C #ABF05C
triadic
#F0EB5C #5CF0EB #EB5CF0
tetradic
#F0EB5C #5CF0A1 #5C61F0 #F05CAB
square
#F0EB5C #5CF0A1 #5C61F0 #F05CAB
split-complementary
#F0EB5C #5CABF0 #A15CF0
monochromatic
#C0BA12 #EBE424 #F0EB5C #F5F294 #FAF9CC

Accessibility & contrast

On white

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

On black

16.74
#F0EB5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EB5C
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EB5C#FFFFFF#000000##000000
##F0EB5C1.001.2516.7416.74
#FFFFFF1.251.0021.0021.00
#00000016.7421.001.001.00
##00000016.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE24A
Deuteranopia (green-blind)
#FFE865
Tritanopia (blue-blind)
#FFDDCD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f0eb5c;
/* rgb */ color: rgb(240, 235, 92);
/* oklch */ color: oklch(91.8% 0.161 107.3);
Tailwind
colors: {
  custom: {
    50: '#f8f190',
    500: '#f0eb5c',
    950: '#000000',
  },
}
SCSS
$custom: #f0eb5c;
$custom-light: #f8f190;
$custom-dark: #000000;
JSON
{
  "hex": "#f0eb5c",
  "rgb": {
    "r": 240,
    "g": 235,
    "b": 92
  },
  "hsl": {
    "h": 57.973,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.91802,
    "c": 0.16137,
    "h": 107.3
  },
  "luminance": 0.78715
}

Semantic roles & 50–950 ramp

primary
#F0EB5C
secondary
#3237BE
accent
#0DE006
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F0EB5C

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

Preview Lab → · Contrast checker → · Palette generator →

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