#FAFE87#FAFE87

#FAFE87 is a very light, vivid yellow. Relative luminance 0.930; OKLCH L 97.0% C 0.142 H 110.5°. Best body text is #000000 at 19.59:1 contrast (WCAG AA passes).

Color values

HEX#FAFE87
RGBrgb(250, 254, 135)
HSLhsl(62, 98%, 76%)
HSVhsv(62, 47%, 100%)
CMYKcmyk(1.6%, 0%, 46.9%, 0.4%)
CIE-LABlab(97.21, -17.39, 56.02)
CIE-LCHlch(97.21, 58.66, 107.25°)
OKLaboklab(96.99% -0.0498 0.1333)
OKLCHoklch(96.99% 0.142 110.5)
XYZxyz(79.2408, 92.9585, 36.6855)
Luminance0.9296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAFE87 #8B87FE
analogous
#FEC787 #FAFE87 #BFFE87
triadic
#FAFE87 #87FAFE #FE87FA
tetradic
#FAFE87 #87FEC7 #8B87FE #FE87BF
square
#FAFE87 #87FEC7 #8B87FE #FE87BF
split-complementary
#FAFE87 #87BFFE #C787FE
monochromatic
#F5FD0E #F7FD4A #FAFE87 #FDFFC4 #FEFFE1

Accessibility & contrast

On white

1.07
#FAFE87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.59
#FAFE87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAFE87
19.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAFE87#FFFFFF#000000##000000
##FAFE871.001.0719.5919.59
#FFFFFF1.071.0021.0021.00
#00000019.5921.001.001.00
##00000019.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF57D
Deuteranopia (green-blind)
#FFF98D
Tritanopia (blue-blind)
#FFF1E2
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fafe87;
/* rgb */ color: rgb(250, 254, 135);
/* oklch */ color: oklch(97.0% 0.142 110.5);
Tailwind
colors: {
  custom: {
    50: '#fefeac',
    500: '#fafe87',
    950: '#000000',
  },
}
SCSS
$custom: #fafe87;
$custom-light: #fefeac;
$custom-dark: #000000;
JSON
{
  "hex": "#fafe87",
  "rgb": {
    "r": 250,
    "g": 254,
    "b": 135
  },
  "hsl": {
    "h": 62.017,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.9699,
    "c": 0.14229,
    "h": 110.5
  },
  "luminance": 0.92957
}

Semantic roles & 50–950 ramp

primary
#FAFE87
secondary
#504BDE
accent
#00E608
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FAFE87

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

Preview Lab → · Contrast checker → · Palette generator →

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