#FAF157#FAF157

#FAF157 is a very light, vivid yellow. Relative luminance 0.839; OKLCH L 93.8% C 0.169 H 106.0°. Best body text is #000000 at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#FAF157
RGBrgb(250, 241, 87)
HSLhsl(57, 94%, 66%)
HSVhsv(57, 65%, 98%)
CMYKcmyk(0%, 3.6%, 65.2%, 2%)
CIE-LABlab(93.42, -14.57, 72.39)
CIE-LCHlch(93.42, 73.84, 101.38°)
OKLaboklab(93.83% -0.0467 0.1629)
OKLCHoklch(93.83% 0.169 106)
XYZxyz(72.6026, 83.9252, 21.3898)
Luminance0.8392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF157 #5760FA
analogous
#FA9F57 #FAF157 #B1FA57
triadic
#FAF157 #57FAF1 #F157FA
tetradic
#FAF157 #57FA9F #5760FA #FA57B1
square
#FAF157 #57FA9F #5760FA #FA57B1
split-complementary
#FAF157 #57B1FA #9F57FA
monochromatic
#D0C506 #F8EC1C #FAF157 #FCF692 #FEFBCE

Accessibility & contrast

On white

1.18
#FAF157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.78
#FAF157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF157
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF157#FFFFFF#000000##000000
##FAF1571.001.1817.7817.78
#FFFFFF1.181.0021.0021.00
#00000017.7821.001.001.00
##00000017.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE842
Deuteranopia (green-blind)
#FFEF61
Tritanopia (blue-blind)
#FFE2D2
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #faf157;
/* rgb */ color: rgb(250, 241, 87);
/* oklch */ color: oklch(93.8% 0.169 106.0);
Tailwind
colors: {
  custom: {
    50: '#fff58e',
    500: '#faf157',
    950: '#000000',
  },
}
SCSS
$custom: #faf157;
$custom-light: #fff58e;
$custom-dark: #000000;
JSON
{
  "hex": "#faf157",
  "rgb": {
    "r": 250,
    "g": 241,
    "b": 87
  },
  "hsl": {
    "h": 56.687,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.93825,
    "c": 0.16946,
    "h": 106
  },
  "luminance": 0.83923
}

Semantic roles & 50–950 ramp

primary
#FAF157
secondary
#2A33CB
accent
#0DE600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #FAF157

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

Preview Lab → · Contrast checker → · Palette generator →

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