#F0D460#F0D460

#F0D460 is a very light, vivid yellow. Relative luminance 0.665; OKLCH L 87.1% C 0.138 H 95.8°. Best body text is #000000 at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#F0D460
RGBrgb(240, 212, 96)
HSLhsl(48, 83%, 66%)
HSVhsv(48, 60%, 94%)
CMYKcmyk(0%, 11.7%, 60%, 5.9%)
CIE-LABlab(85.23, -3.66, 59.63)
CIE-LCHlch(85.23, 59.74, 93.51°)
OKLaboklab(87.15% -0.014 0.1374)
OKLCHoklch(87.15% 0.138 95.8)
XYZxyz(61.5926, 66.4597, 20.6478)
Luminance0.6646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D460 #607CF0
analogous
#F08C60 #F0D460 #C4F060
triadic
#F0D460 #60F0D4 #D460F0
tetradic
#F0D460 #60F08C #607CF0 #F060C4
square
#F0D460 #60F08C #607CF0 #F060C4
split-complementary
#F0D460 #60C4F0 #8C60F0
monochromatic
#C3A112 #EBC528 #F0D460 #F5E398 #FBF2D0

Accessibility & contrast

On white

1.47
#F0D460 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.29
#F0D460 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D460
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D460#FFFFFF#000000##000000
##F0D4601.001.4714.2914.29
#FFFFFF1.471.0021.0021.00
#00000014.2921.001.001.00
##00000014.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D054
Deuteranopia (green-blind)
#EFD965
Tritanopia (blue-blind)
#FFC6BB
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d460;
/* rgb */ color: rgb(240, 212, 96);
/* oklch */ color: oklch(87.1% 0.138 95.8);
Tailwind
colors: {
  custom: {
    50: '#f8e091',
    500: '#f0d460',
    950: '#000000',
  },
}
SCSS
$custom: #f0d460;
$custom-light: #f8e091;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d460",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 96
  },
  "hsl": {
    "h": 48.333,
    "s": 82.759,
    "l": 65.882
  },
  "oklch": {
    "l": 0.87147,
    "c": 0.1381,
    "h": 95.8
  },
  "luminance": 0.66457
}

Semantic roles & 50–950 ramp

primary
#F0D460
secondary
#334FC1
accent
#30DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D460

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

Preview Lab → · Contrast checker → · Palette generator →

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