#FAF474#FAF474

#FAF474 is a very light, vivid yellow. Relative luminance 0.863; OKLCH L 94.7% C 0.149 H 106.5°. Best body text is #000000 at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#FAF474
RGBrgb(250, 244, 116)
HSLhsl(57, 93%, 72%)
HSVhsv(57, 54%, 98%)
CMYKcmyk(0%, 2.4%, 53.6%, 2%)
CIE-LABlab(94.44, -14.12, 61.39)
CIE-LCHlch(94.44, 62.99, 102.95°)
OKLaboklab(94.71% -0.0423 0.1433)
OKLCHoklch(94.71% 0.149 106.5)
XYZxyz(74.9295, 86.2885, 29.2279)
Luminance0.8629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF474 #747AFA
analogous
#FAB174 #FAF474 #BDFA74
triadic
#FAF474 #74FAF4 #F474FA
tetradic
#FAF474 #74FAB1 #747AFA #FA74BD
square
#FAF474 #74FAB1 #747AFA #FA74BD
split-complementary
#FAF474 #74BDFA #B174FA
monochromatic
#EBE108 #F8EF39 #FAF474 #FCF9AF #FEFDE1

Accessibility & contrast

On white

1.15
#FAF474 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.26
#FAF474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF474
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF474#FFFFFF#000000##000000
##FAF4741.001.1518.2618.26
#FFFFFF1.151.0021.0021.00
#00000018.2621.001.001.00
##00000018.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC67
Deuteranopia (green-blind)
#FFF27B
Tritanopia (blue-blind)
#FFE6D7
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #faf474;
/* rgb */ color: rgb(250, 244, 116);
/* oklch */ color: oklch(94.7% 0.149 106.5);
Tailwind
colors: {
  custom: {
    50: '#fef7a0',
    500: '#faf474',
    950: '#000000',
  },
}
SCSS
$custom: #faf474;
$custom-light: #fef7a0;
$custom-dark: #000000;
JSON
{
  "hex": "#faf474",
  "rgb": {
    "r": 250,
    "g": 244,
    "b": 116
  },
  "hsl": {
    "h": 57.313,
    "s": 93.056,
    "l": 71.765
  },
  "oklch": {
    "l": 0.94714,
    "c": 0.14939,
    "h": 106.5
  },
  "luminance": 0.86286
}

Semantic roles & 50–950 ramp

primary
#FAF474
secondary
#3C43D6
accent
#0AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF474

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

Preview Lab → · Contrast checker → · Palette generator →

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