#F0D251#F0D251

#F0D251 is a very light, vivid yellow. Relative luminance 0.652; OKLCH L 86.6% C 0.148 H 96.0°. Best body text is #000000 at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#F0D251
RGBrgb(240, 210, 81)
HSLhsl(49, 84%, 63%)
HSVhsv(49, 66%, 94%)
CMYKcmyk(0%, 12.5%, 66.3%, 5.9%)
CIE-LABlab(84.59, -3.56, 65.35)
CIE-LCHlch(84.59, 65.45, 93.12°)
OKLaboklab(86.6% -0.0154 0.1474)
OKLCHoklch(86.6% 0.148 96)
XYZxyz(60.4698, 65.2156, 17.1857)
Luminance0.6521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D251 #516FF0
analogous
#F08251 #F0D251 #BFF051
triadic
#F0D251 #51F0D2 #D251F0
tetradic
#F0D251 #51F082 #516FF0 #F051BF
square
#F0D251 #51F082 #516FF0 #F051BF
split-complementary
#F0D251 #51BFF0 #8251F0
monochromatic
#B79710 #EBC319 #F0D251 #F5E189 #FAEFC2

Accessibility & contrast

On white

1.50
#F0D251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.04
#F0D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D251
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D251#FFFFFF#000000##000000
##F0D2511.001.5014.0414.04
#FFFFFF1.501.0021.0021.00
#00000014.0421.001.001.00
##00000014.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE41
Deuteranopia (green-blind)
#EED758
Tritanopia (blue-blind)
#FFC3B7
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f0d251;
/* rgb */ color: rgb(240, 210, 81);
/* oklch */ color: oklch(86.6% 0.148 96.0);
Tailwind
colors: {
  custom: {
    50: '#f9df88',
    500: '#f0d251',
    950: '#000000',
  },
}
SCSS
$custom: #f0d251;
$custom-light: #f9df88;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d251",
  "rgb": {
    "r": 240,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 48.679,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.86603,
    "c": 0.14822,
    "h": 96
  },
  "luminance": 0.65213
}

Semantic roles & 50–950 ramp

primary
#F0D251
secondary
#2F49B6
accent
#2EE105
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0D251

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

Preview Lab → · Contrast checker → · Palette generator →

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