#FAF870#FAF870

#FAF870 is a very light, vivid yellow. Relative luminance 0.886; OKLCH L 95.5% C 0.157 H 108.3°. Best body text is #000000 at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#FAF870
RGBrgb(250, 248, 112)
HSLhsl(59, 93%, 71%)
HSVhsv(59, 55%, 98%)
CMYKcmyk(0%, 0.8%, 55.2%, 2%)
CIE-LABlab(95.43, -16.37, 64.28)
CIE-LCHlch(95.43, 66.33, 104.29°)
OKLaboklab(95.49% -0.0492 0.149)
OKLCHoklch(95.49% 0.157 108.3)
XYZxyz(75.9185, 88.6307, 28.4344)
Luminance0.8863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF870 #7072FA
analogous
#FAB370 #FAF870 #B7FA70
triadic
#FAF870 #70FAF8 #F870FA
tetradic
#FAF870 #70FAB3 #7072FA #FA70B7
square
#FAF870 #70FAB3 #7072FA #FA70B7
split-complementary
#FAF870 #70B7FA #B370FA
monochromatic
#E8E408 #F8F535 #FAF870 #FCFBAB #FEFEE1

Accessibility & contrast

On white

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

On black

18.73
#FAF870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF870
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF870#FFFFFF#000000##000000
##FAF8701.001.1218.7318.73
#FFFFFF1.121.0021.0021.00
#00000018.7321.001.001.00
##00000018.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF62
Deuteranopia (green-blind)
#FFF477
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #faf870;
/* rgb */ color: rgb(250, 248, 112);
/* oklch */ color: oklch(95.5% 0.157 108.3);
Tailwind
colors: {
  custom: {
    50: '#fffa9d',
    500: '#faf870',
    950: '#000000',
  },
}
SCSS
$custom: #faf870;
$custom-light: #fffa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#faf870",
  "rgb": {
    "r": 250,
    "g": 248,
    "b": 112
  },
  "hsl": {
    "h": 59.13,
    "s": 93.243,
    "l": 70.98
  },
  "oklch": {
    "l": 0.9549,
    "c": 0.15692,
    "h": 108.3
  },
  "luminance": 0.88629
}

Semantic roles & 50–950 ramp

primary
#FAF870
secondary
#393BD5
accent
#03E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF870

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

Preview Lab → · Contrast checker → · Palette generator →

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