#FFF87D#FFF87D

#FFF87D is a very light, vivid yellow. Relative luminance 0.899; OKLCH L 96.0% C 0.145 H 105.9°. Best body text is #000000 at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#FFF87D
RGBrgb(255, 248, 125)
HSLhsl(57, 100%, 75%)
HSVhsv(57, 51%, 100%)
CMYKcmyk(0%, 2.7%, 51%, 0%)
CIE-LABlab(95.95, -13.39, 59.20)
CIE-LCHlch(95.95, 60.69, 102.74°)
OKLaboklab(96.04% -0.0396 0.1393)
OKLCHoklch(96.04% 0.145 105.9)
XYZxyz(78.5112, 89.8778, 32.6105)
Luminance0.8988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF87D #7D84FF
analogous
#FFB77D #FFF87D #C5FF7D
triadic
#FFF87D #7DFFF8 #F87DFF
tetradic
#FFF87D #7DFFB7 #7D84FF #FF7DC5
square
#FFF87D #7DFFB7 #7D84FF #FF7DC5
split-complementary
#FFF87D #7DC5FF #B77DFF
monochromatic
#FFF103 #FFF540 #FFF87D #FFFBBA #FFFDE0

Accessibility & contrast

On white

1.11
#FFF87D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.98
#FFF87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF87D
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF87D#FFFFFF#000000##000000
##FFF87D1.001.1118.9818.98
#FFFFFF1.111.0021.0021.00
#00000018.9821.001.001.00
##00000018.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF071
Deuteranopia (green-blind)
#FFF683
Tritanopia (blue-blind)
#FFEADC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fff87d;
/* rgb */ color: rgb(255, 248, 125);
/* oklch */ color: oklch(96.0% 0.145 105.9);
Tailwind
colors: {
  custom: {
    50: '#fffaa6',
    500: '#fff87d',
    950: '#000000',
  },
}
SCSS
$custom: #fff87d;
$custom-light: #fffaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#fff87d",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 125
  },
  "hsl": {
    "h": 56.769,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.96041,
    "c": 0.14484,
    "h": 105.9
  },
  "luminance": 0.89875
}

Semantic roles & 50–950 ramp

primary
#FFF87D
secondary
#424BDE
accent
#0CE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FFF87D

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

Preview Lab → · Contrast checker → · Palette generator →

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