#F8D251#F8D251

#F8D251 is a very light, vivid yellow. Relative luminance 0.666; OKLCH L 87.4% C 0.149 H 92.4°. Best body text is #000000 at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#F8D251
RGBrgb(248, 210, 81)
HSLhsl(46, 92%, 65%)
HSVhsv(46, 67%, 97%)
CMYKcmyk(0%, 15.3%, 67.3%, 2.7%)
CIE-LABlab(85.33, -0.23, 66.34)
CIE-LCHlch(85.33, 66.34, 90.20°)
OKLaboklab(87.35% -0.0063 0.1493)
OKLCHoklch(87.35% 0.149 92.4)
XYZxyz(63.2464, 66.6473, 17.3159)
Luminance0.6664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D251 #5177F8
analogous
#F87E51 #F8D251 #CBF851
triadic
#F8D251 #51F8D2 #D251F8
tetradic
#F8D251 #51F87E #5177F8 #F851CB
square
#F8D251 #51F87E #5177F8 #F851CB
split-complementary
#F8D251 #51CBF8 #7E51F8
monochromatic
#C79B08 #F6C316 #F8D251 #FAE18C #FDF0C7

Accessibility & contrast

On white

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

On black

14.33
#F8D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D251
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D251#FFFFFF#000000##000000
##F8D2511.001.4714.3314.33
#FFFFFF1.471.0021.0021.00
#00000014.3321.001.001.00
##00000014.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF40
Deuteranopia (green-blind)
#F1DA57
Tritanopia (blue-blind)
#FFC2B7
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f8d251;
/* rgb */ color: rgb(248, 210, 81);
/* oklch */ color: oklch(87.4% 0.149 92.4);
Tailwind
colors: {
  custom: {
    50: '#ffdf88',
    500: '#f8d251',
    950: '#000000',
  },
}
SCSS
$custom: #f8d251;
$custom-light: #ffdf88;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d251",
  "rgb": {
    "r": 248,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 46.347,
    "s": 92.265,
    "l": 64.51
  },
  "oklch": {
    "l": 0.87352,
    "c": 0.14938,
    "h": 92.4
  },
  "luminance": 0.66644
}

Semantic roles & 50–950 ramp

primary
#F8D251
secondary
#2A4DC3
accent
#34E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F8D251

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

Preview Lab → · Contrast checker → · Palette generator →

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