#F0D95F#F0D95F

#F0D95F is a very light, vivid yellow. Relative luminance 0.690; OKLCH L 88.1% C 0.143 H 98.7°. Best body text is #000000 at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#F0D95F
RGBrgb(240, 217, 95)
HSLhsl(50, 83%, 66%)
HSVhsv(50, 60%, 94%)
CMYKcmyk(0%, 9.6%, 60.4%, 5.9%)
CIE-LABlab(86.49, -6.26, 61.47)
CIE-LCHlch(86.49, 61.79, 95.81°)
OKLaboklab(88.15% -0.0216 0.1412)
OKLCHoklch(88.15% 0.143 98.7)
XYZxyz(62.8161, 68.9799, 20.8299)
Luminance0.6898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D95F #5F76F0
analogous
#F0905F #F0D95F #BEF05F
triadic
#F0D95F #5FF0D9 #D95FF0
tetradic
#F0D95F #5FF090 #5F76F0 #F05FBE
square
#F0D95F #5FF090 #5F76F0 #F05FBE
split-complementary
#F0D95F #5FBEF0 #905FF0
monochromatic
#C2A612 #EBCC27 #F0D95F #F5E697 #FAF4CF

Accessibility & contrast

On white

1.42
#F0D95F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.80
#F0D95F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D95F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D95F#FFFFFF#000000##000000
##F0D95F1.001.4214.8014.80
#FFFFFF1.421.0021.0021.00
#00000014.8021.001.001.00
##00000014.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD452
Deuteranopia (green-blind)
#F2DC65
Tritanopia (blue-blind)
#FFCBBF
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f0d95f;
/* rgb */ color: rgb(240, 217, 95);
/* oklch */ color: oklch(88.1% 0.143 98.7);
Tailwind
colors: {
  custom: {
    50: '#f8e491',
    500: '#f0d95f',
    950: '#000000',
  },
}
SCSS
$custom: #f0d95f;
$custom-light: #f8e491;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d95f",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 95
  },
  "hsl": {
    "h": 50.483,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.88145,
    "c": 0.14283,
    "h": 98.7
  },
  "luminance": 0.68977
}

Semantic roles & 50–950 ramp

primary
#F0D95F
secondary
#3349C0
accent
#29DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D95F

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

Preview Lab → · Contrast checker → · Palette generator →

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