#F0C951#F0C951

#F0C951 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.8% C 0.142 H 90.9°. Best body text is #000000 at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#F0C951
RGBrgb(240, 201, 81)
HSLhsl(45, 84%, 63%)
HSVhsv(45, 66%, 94%)
CMYKcmyk(0%, 16.3%, 66.3%, 5.9%)
CIE-LABlab(82.32, 1.05, 62.97)
CIE-LCHlch(82.32, 62.98, 89.05°)
OKLaboklab(84.81% -0.0022 0.1424)
OKLCHoklch(84.81% 0.142 90.9)
XYZxyz(58.3100, 60.8960, 16.4658)
Luminance0.6089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0C951 #5178F0
analogous
#F07951 #F0C951 #C7F051
triadic
#F0C951 #51F0C9 #C951F0
tetradic
#F0C951 #51F079 #5178F0 #F051C7
square
#F0C951 #51F079 #5178F0 #F051C7
split-complementary
#F0C951 #51C7F0 #7951F0
monochromatic
#B78E10 #EBB819 #F0C951 #F5DA89 #FAECC2

Accessibility & contrast

On white

1.59
#F0C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.18
#F0C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0C951
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0C951#FFFFFF#000000##000000
##F0C9511.001.5913.1813.18
#FFFFFF1.591.0021.0021.00
#00000013.1821.001.001.00
##00000013.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC642
Deuteranopia (green-blind)
#E8D157
Tritanopia (blue-blind)
#FFB9B0
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #f0c951;
/* rgb */ color: rgb(240, 201, 81);
/* oklch */ color: oklch(84.8% 0.142 90.9);
Tailwind
colors: {
  custom: {
    50: '#f9d987',
    500: '#f0c951',
    950: '#000000',
  },
}
SCSS
$custom: #f0c951;
$custom-light: #f9d987;
$custom-dark: #000000;
JSON
{
  "hex": "#f0c951",
  "rgb": {
    "r": 240,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 45.283,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.84808,
    "c": 0.14237,
    "h": 90.9
  },
  "luminance": 0.60893
}

Semantic roles & 50–950 ramp

primary
#F0C951
secondary
#2F50B6
accent
#3BE105
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0C951

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

Preview Lab → · Contrast checker → · Palette generator →

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