#FAF77B#FAF77B

#FAF77B is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.4% C 0.146 H 107.6°. Best body text is #000000 at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#FAF77B
RGBrgb(250, 247, 123)
HSLhsl(59, 93%, 73%)
HSVhsv(59, 51%, 98%)
CMYKcmyk(0%, 1.2%, 50.8%, 2%)
CIE-LABlab(95.28, -15.03, 59.22)
CIE-LCHlch(95.28, 61.10, 104.24°)
OKLaboklab(95.41% -0.0442 0.1393)
OKLCHoklch(95.41% 0.146 107.6)
XYZxyz(76.2622, 88.2776, 31.7571)
Luminance0.8828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF77B #7B7EFA
analogous
#FAB77B #FAF77B #BDFA7B
triadic
#FAF77B #7BFAF7 #F77BFA
tetradic
#FAF77B #7BFAB7 #7B7EFA #FA7BBD
square
#FAF77B #7BFAB7 #7B7EFA #FA7BBD
split-complementary
#FAF77B #7BBDFA #B77BFA
monochromatic
#F1EC09 #F8F340 #FAF77B #FCFBB6 #FEFDE2

Accessibility & contrast

On white

1.13
#FAF77B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.66
#FAF77B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF77B
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF77B#FFFFFF#000000##000000
##FAF77B1.001.1318.6618.66
#FFFFFF1.131.0021.0021.00
#00000018.6621.001.001.00
##00000018.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #faf77b;
/* rgb */ color: rgb(250, 247, 123);
/* oklch */ color: oklch(95.4% 0.146 107.6);
Tailwind
colors: {
  custom: {
    50: '#fef9a4',
    500: '#faf77b',
    950: '#000000',
  },
}
SCSS
$custom: #faf77b;
$custom-light: #fef9a4;
$custom-dark: #000000;
JSON
{
  "hex": "#faf77b",
  "rgb": {
    "r": 250,
    "g": 247,
    "b": 123
  },
  "hsl": {
    "h": 58.583,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.95408,
    "c": 0.14612,
    "h": 107.6
  },
  "luminance": 0.88276
}

Semantic roles & 50–950 ramp

primary
#FAF77B
secondary
#4246D7
accent
#05E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF77B

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

Preview Lab → · Contrast checker → · Palette generator →

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