#F0D03F#F0D03F

#F0D03F is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 86.1% C 0.158 H 96.1°. Best body text is #000000 at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#F0D03F
RGBrgb(240, 208, 63)
HSLhsl(49, 86%, 59%)
HSVhsv(49, 74%, 94%)
CMYKcmyk(0%, 13.3%, 73.8%, 5.9%)
CIE-LABlab(83.97, -3.42, 71.59)
CIE-LCHlch(83.97, 71.67, 92.74°)
OKLaboklab(86.07% -0.017 0.1575)
OKLCHoklch(86.07% 0.158 96.1)
XYZxyz(59.3914, 63.9991, 13.9264)
Luminance0.6400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D03F #3F5FF0
analogous
#F0783F #F0D03F #B7F03F
triadic
#F0D03F #3FF0D0 #D03FF0
tetradic
#F0D03F #3FF078 #3F5FF0 #F03FB7
square
#F0D03F #3FF078 #3F5FF0 #F03FB7
split-complementary
#F0D03F #3FB7F0 #783FF0
monochromatic
#A88C0D #E0BB12 #F0D03F #F4DE78 #F9ECB1

Accessibility & contrast

On white

1.52
#F0D03F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.80
#F0D03F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D03F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D03F#FFFFFF#000000##000000
##F0D03F1.001.5213.8013.80
#FFFFFF1.521.0021.0021.00
#00000013.8021.001.001.00
##00000013.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC25
Deuteranopia (green-blind)
#EED648
Tritanopia (blue-blind)
#FFC0B4
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #f0d03f;
/* rgb */ color: rgb(240, 208, 63);
/* oklch */ color: oklch(86.1% 0.158 96.1);
Tailwind
colors: {
  custom: {
    50: '#f9de7e',
    500: '#f0d03f',
    950: '#000000',
  },
}
SCSS
$custom: #f0d03f;
$custom-light: #f9de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d03f",
  "rgb": {
    "r": 240,
    "g": 208,
    "b": 63
  },
  "hsl": {
    "h": 49.153,
    "s": 85.507,
    "l": 59.412
  },
  "oklch": {
    "l": 0.86066,
    "c": 0.15837,
    "h": 96.1
  },
  "luminance": 0.63996
}

Semantic roles & 50–950 ramp

primary
#F0D03F
secondary
#2A41A9
accent
#52FC2C
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#18150B
muted
#86847E

Preview Lab

Preview with #F0D03F

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

Preview Lab → · Contrast checker → · Palette generator →

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