#F0EB5A#F0EB5A

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

Color values

HEX#F0EB5A
RGBrgb(240, 235, 90)
HSLhsl(58, 83%, 65%)
HSVhsv(58, 63%, 94%)
CMYKcmyk(0%, 2.1%, 62.5%, 5.9%)
CIE-LABlab(91.09, -15.52, 68.53)
CIE-LCHlch(91.09, 70.27, 102.76°)
OKLaboklab(91.78% -0.0485 0.1555)
OKLCHoklch(91.78% 0.163 107.3)
XYZxyz(67.4913, 78.6822, 21.3029)
Luminance0.7868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EB5A #5A5FF0
analogous
#F0A05A #F0EB5A #AAF05A
triadic
#F0EB5A #5AF0EB #EB5AF0
tetradic
#F0EB5A #5AF0A0 #5A5FF0 #F05AAA
square
#F0EB5A #5AF0A0 #5A5FF0 #F05AAA
split-complementary
#F0EB5A #5AAAF0 #A05AF0
monochromatic
#BEB911 #EBE422 #F0EB5A #F5F292 #FAF9CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0EB5A#FFFFFF#000000##000000
##F0EB5A1.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)
#FDE248
Deuteranopia (green-blind)
#FFE863
Tritanopia (blue-blind)
#FFDDCD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f0eb5a;
/* rgb */ color: rgb(240, 235, 90);
/* oklch */ color: oklch(91.8% 0.163 107.3);
Tailwind
colors: {
  custom: {
    50: '#f8f18f',
    500: '#f0eb5a',
    950: '#000000',
  },
}
SCSS
$custom: #f0eb5a;
$custom-light: #f8f18f;
$custom-dark: #000000;
JSON
{
  "hex": "#f0eb5a",
  "rgb": {
    "r": 240,
    "g": 235,
    "b": 90
  },
  "hsl": {
    "h": 58,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.91784,
    "c": 0.16287,
    "h": 107.3
  },
  "luminance": 0.7868
}

Semantic roles & 50–950 ramp

primary
#F0EB5A
secondary
#3236BD
accent
#0DE006
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F0EB5A

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

Preview Lab → · Contrast checker → · Palette generator →

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