#FAF978#FAF978

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

Color values

HEX#FAF978
RGBrgb(250, 249, 120)
HSLhsl(60, 93%, 73%)
HSVhsv(60, 52%, 98%)
CMYKcmyk(0%, 0.4%, 52%, 2%)
CIE-LABlab(95.76, -16.24, 61.14)
CIE-LCHlch(95.76, 63.26, 104.88°)
OKLaboklab(95.78% -0.048 0.1431)
OKLCHoklch(95.78% 0.151 108.5)
XYZxyz(76.6921, 89.4334, 30.9881)
Luminance0.8943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF978 #7879FA
analogous
#FAB878 #FAF978 #BAFA78
triadic
#FAF978 #78FAF9 #F978FA
tetradic
#FAF978 #78FAB8 #7879FA #FA78BA
square
#FAF978 #78FAB8 #7879FA #FA78BA
split-complementary
#FAF978 #78BAFA #B878FA
monochromatic
#EFED09 #F8F63D #FAF978 #FCFCB3 #FEFEE1

Accessibility & contrast

On white

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

On black

18.89
#FAF978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF978
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF978#FFFFFF#000000##000000
##FAF9781.001.1118.8918.89
#FFFFFF1.111.0021.0021.00
#00000018.8921.001.001.00
##00000018.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06B
Deuteranopia (green-blind)
#FFF57F
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #faf978;
/* rgb */ color: rgb(250, 249, 120);
/* oklch */ color: oklch(95.8% 0.151 108.5);
Tailwind
colors: {
  custom: {
    50: '#fefba2',
    500: '#faf978',
    950: '#000000',
  },
}
SCSS
$custom: #faf978;
$custom-light: #fefba2;
$custom-dark: #000000;
JSON
{
  "hex": "#faf978",
  "rgb": {
    "r": 250,
    "g": 249,
    "b": 120
  },
  "hsl": {
    "h": 59.538,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.95783,
    "c": 0.15095,
    "h": 108.5
  },
  "luminance": 0.89431
}

Semantic roles & 50–950 ramp

primary
#FAF978
secondary
#4041D6
accent
#02E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF978

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

Preview Lab → · Contrast checker → · Palette generator →

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