#F0D960#F0D960

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

Color values

HEX#F0D960
RGBrgb(240, 217, 96)
HSLhsl(50, 83%, 66%)
HSVhsv(50, 60%, 94%)
CMYKcmyk(0%, 9.6%, 60%, 5.9%)
CIE-LABlab(86.50, -6.19, 61.05)
CIE-LCHlch(86.50, 61.36, 95.79°)
OKLaboklab(88.16% -0.0213 0.1404)
OKLCHoklch(88.16% 0.142 98.6)
XYZxyz(62.8619, 68.9982, 21.0709)
Luminance0.6900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D960 #6077F0
analogous
#F09160 #F0D960 #BFF060
triadic
#F0D960 #60F0D9 #D960F0
tetradic
#F0D960 #60F091 #6077F0 #F060BF
square
#F0D960 #60F091 #6077F0 #F060BF
split-complementary
#F0D960 #60BFF0 #9160F0
monochromatic
#C3A712 #EBCC28 #F0D960 #F5E698 #FBF4D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0D960#FFFFFF#000000##000000
##F0D9601.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)
#ECD453
Deuteranopia (green-blind)
#F2DC66
Tritanopia (blue-blind)
#FFCBBF
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f0d960;
/* rgb */ color: rgb(240, 217, 96);
/* oklch */ color: oklch(88.2% 0.142 98.6);
Tailwind
colors: {
  custom: {
    50: '#f8e491',
    500: '#f0d960',
    950: '#000000',
  },
}
SCSS
$custom: #f0d960;
$custom-light: #f8e491;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d960",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 96
  },
  "hsl": {
    "h": 50.417,
    "s": 82.759,
    "l": 65.882
  },
  "oklch": {
    "l": 0.88155,
    "c": 0.14201,
    "h": 98.6
  },
  "luminance": 0.68996
}

Semantic roles & 50–950 ramp

primary
#F0D960
secondary
#334AC1
accent
#29DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D960

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

Preview Lab → · Contrast checker → · Palette generator →

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