#FAF87B#FAF87B

#FAF87B is a very light, vivid yellow. Relative luminance 0.889; OKLCH L 95.6% C 0.147 H 108.1°. Best body text is #000000 at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#FAF87B
RGBrgb(250, 248, 123)
HSLhsl(59, 93%, 73%)
HSVhsv(59, 51%, 98%)
CMYKcmyk(0%, 0.8%, 50.8%, 2%)
CIE-LABlab(95.53, -15.52, 59.52)
CIE-LCHlch(95.53, 61.51, 104.61°)
OKLaboklab(95.61% -0.0456 0.1399)
OKLCHoklch(95.61% 0.147 108.1)
XYZxyz(76.5688, 88.8908, 31.8593)
Luminance0.8889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF87B #7B7DFA
analogous
#FAB87B #FAF87B #BCFA7B
triadic
#FAF87B #7BFAF8 #F87BFA
tetradic
#FAF87B #7BFAB8 #7B7DFA #FA7BBC
square
#FAF87B #7BFAB8 #7B7DFA #FA7BBC
split-complementary
#FAF87B #7BBCFA #B87BFA
monochromatic
#F1EE09 #F8F540 #FAF87B #FCFBB6 #FEFDE2

Accessibility & contrast

On white

1.12
#FAF87B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.78
#FAF87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF87B
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF87B#FFFFFF#000000##000000
##FAF87B1.001.1218.7818.78
#FFFFFF1.121.0021.0021.00
#00000018.7821.001.001.00
##00000018.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF6F
Deuteranopia (green-blind)
#FFF481
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #faf87b;
/* rgb */ color: rgb(250, 248, 123);
/* oklch */ color: oklch(95.6% 0.147 108.1);
Tailwind
colors: {
  custom: {
    50: '#fefaa4',
    500: '#faf87b',
    950: '#000000',
  },
}
SCSS
$custom: #faf87b;
$custom-light: #fefaa4;
$custom-dark: #000000;
JSON
{
  "hex": "#faf87b",
  "rgb": {
    "r": 250,
    "g": 248,
    "b": 123
  },
  "hsl": {
    "h": 59.055,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.95612,
    "c": 0.14717,
    "h": 108.1
  },
  "luminance": 0.88889
}

Semantic roles & 50–950 ramp

primary
#FAF87B
secondary
#4245D7
accent
#04E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF87B

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

Preview Lab → · Contrast checker → · Palette generator →

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