#FAF28E#FAF28E

#FAF28E is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.6% C 0.122 H 104.5°. Best body text is #000000 at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#FAF28E
RGBrgb(250, 242, 142)
HSLhsl(56, 92%, 77%)
HSVhsv(56, 43%, 98%)
CMYKcmyk(0%, 3.2%, 43.2%, 2%)
CIE-LABlab(94.22, -10.88, 49.05)
CIE-LCHlch(94.22, 50.25, 102.50°)
OKLaboklab(94.64% -0.0305 0.1183)
OKLCHoklch(94.64% 0.122 104.5)
XYZxyz(76.0605, 85.7833, 38.1371)
Luminance0.8578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF28E #8E96FA
analogous
#FABC8E #FAF28E #CCFA8E
triadic
#FAF28E #8EFAF2 #F28EFA
tetradic
#FAF28E #8EFABC #8E96FA #FA8ECC
square
#FAF28E #8EFABC #8E96FA #FA8ECC
split-complementary
#FAF28E #8ECCFA #BC8EFA
monochromatic
#F5E519 #F7EB53 #FAF28E #FDF9C9 #FEFCE2

Accessibility & contrast

On white

1.16
#FAF28E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.16
#FAF28E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF28E
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF28E#FFFFFF#000000##000000
##FAF28E1.001.1618.1618.16
#FFFFFF1.161.0021.0021.00
#00000018.1621.001.001.00
##00000018.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB86
Deuteranopia (green-blind)
#FFF192
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #faf28e;
/* rgb */ color: rgb(250, 242, 142);
/* oklch */ color: oklch(94.6% 0.122 104.5);
Tailwind
colors: {
  custom: {
    50: '#fef6b1',
    500: '#faf28e',
    950: '#000000',
  },
}
SCSS
$custom: #faf28e;
$custom-light: #fef6b1;
$custom-dark: #000000;
JSON
{
  "hex": "#faf28e",
  "rgb": {
    "r": 250,
    "g": 242,
    "b": 142
  },
  "hsl": {
    "h": 55.556,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.94638,
    "c": 0.12219,
    "h": 104.5
  },
  "luminance": 0.85781
}

Semantic roles & 50–950 ramp

primary
#FAF28E
secondary
#535DD9
accent
#11E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #FAF28E

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

Preview Lab → · Contrast checker → · Palette generator →

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