#FAF08C#FAF08C

#FAF08C is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 94.2% C 0.122 H 103.5°. Best body text is #000000 at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#FAF08C
RGBrgb(250, 240, 140)
HSLhsl(55, 92%, 76%)
HSVhsv(55, 44%, 98%)
CMYKcmyk(0%, 4%, 44%, 2%)
CIE-LABlab(93.68, -10.08, 49.35)
CIE-LCHlch(93.68, 50.37, 101.55°)
OKLaboklab(94.21% -0.0284 0.1189)
OKLCHoklch(94.21% 0.122 103.5)
XYZxyz(75.3197, 84.5398, 37.1561)
Luminance0.8454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF08C #8C96FA
analogous
#FAB98C #FAF08C #CDFA8C
triadic
#FAF08C #8CFAF0 #F08CFA
tetradic
#FAF08C #8CFAB9 #8C96FA #FA8CCD
square
#FAF08C #8CFAB9 #8C96FA #FA8CCD
split-complementary
#FAF08C #8CCDFA #B98CFA
monochromatic
#F5E117 #F7E851 #FAF08C #FDF8C7 #FEFBE2

Accessibility & contrast

On white

1.17
#FAF08C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.91
#FAF08C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF08C
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF08C#FFFFFF#000000##000000
##FAF08C1.001.1717.9117.91
#FFFFFF1.171.0021.0021.00
#00000017.9121.001.001.00
##00000017.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA84
Deuteranopia (green-blind)
#FFEF90
Tritanopia (blue-blind)
#FFE4D8
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #faf08c;
/* rgb */ color: rgb(250, 240, 140);
/* oklch */ color: oklch(94.2% 0.122 103.5);
Tailwind
colors: {
  custom: {
    50: '#fef4af',
    500: '#faf08c',
    950: '#000000',
  },
}
SCSS
$custom: #faf08c;
$custom-light: #fef4af;
$custom-dark: #000000;
JSON
{
  "hex": "#faf08c",
  "rgb": {
    "r": 250,
    "g": 240,
    "b": 140
  },
  "hsl": {
    "h": 54.545,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.94205,
    "c": 0.1222,
    "h": 103.5
  },
  "luminance": 0.84538
}

Semantic roles & 50–950 ramp

primary
#FAF08C
secondary
#515ED9
accent
#15E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FAF08C

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

Preview Lab → · Contrast checker → · Palette generator →

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