#FAF97B#FAF97B

#FAF97B is a very light, vivid yellow. Relative luminance 0.895; OKLCH L 95.8% C 0.148 H 108.5°. Best body text is #000000 at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#FAF97B
RGBrgb(250, 249, 123)
HSLhsl(60, 93%, 73%)
HSVhsv(60, 51%, 98%)
CMYKcmyk(0%, 0.4%, 50.8%, 2%)
CIE-LABlab(95.79, -16.00, 59.83)
CIE-LCHlch(95.79, 61.93, 104.97°)
OKLaboklab(95.82% -0.047 0.1406)
OKLCHoklch(95.82% 0.148 108.5)
XYZxyz(76.8771, 89.5074, 31.9620)
Luminance0.8951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF97B #7B7CFA
analogous
#FABA7B #FAF97B #BBFA7B
triadic
#FAF97B #7BFAF9 #F97BFA
tetradic
#FAF97B #7BFABA #7B7CFA #FA7BBB
square
#FAF97B #7BFABA #7B7CFA #FA7BBB
split-complementary
#FAF97B #7BBBFA #BA7BFA
monochromatic
#F1F009 #F8F640 #FAF97B #FCFCB6 #FEFEE2

Accessibility & contrast

On white

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

On black

18.90
#FAF97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF97B
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF97B#FFFFFF#000000##000000
##FAF97B1.001.1118.9018.90
#FFFFFF1.111.0021.0021.00
#00000018.9021.001.001.00
##00000018.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06F
Deuteranopia (green-blind)
#FFF581
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #faf97b;
/* rgb */ color: rgb(250, 249, 123);
/* oklch */ color: oklch(95.8% 0.148 108.5);
Tailwind
colors: {
  custom: {
    50: '#fefba4',
    500: '#faf97b',
    950: '#000000',
  },
}
SCSS
$custom: #faf97b;
$custom-light: #fefba4;
$custom-dark: #000000;
JSON
{
  "hex": "#faf97b",
  "rgb": {
    "r": 250,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 59.528,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.95817,
    "c": 0.14822,
    "h": 108.5
  },
  "luminance": 0.89505
}

Semantic roles & 50–950 ramp

primary
#FAF97B
secondary
#4244D7
accent
#02E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF97B

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

Preview Lab → · Contrast checker → · Palette generator →

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