#FAF581#FAF581

#FAF581 is a very light, vivid yellow. Relative luminance 0.872; OKLCH L 95.1% C 0.138 H 106.5°. Best body text is #000000 at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#FAF581
RGBrgb(250, 245, 129)
HSLhsl(58, 92%, 74%)
HSVhsv(58, 48%, 98%)
CMYKcmyk(0%, 2%, 48.4%, 2%)
CIE-LABlab(94.83, -13.55, 55.94)
CIE-LCHlch(94.83, 57.56, 103.61°)
OKLaboklab(95.07% -0.0394 0.1326)
OKLCHoklch(95.07% 0.138 106.5)
XYZxyz(76.0410, 87.2158, 33.5933)
Luminance0.8721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF581 #8186FA
analogous
#FAB981 #FAF581 #C2FA81
triadic
#FAF581 #81FAF5 #F581FA
tetradic
#FAF581 #81FAB9 #8186FA #FA81C2
square
#FAF581 #81FAB9 #8186FA #FA81C2
split-complementary
#FAF581 #81C2FA #B981FA
monochromatic
#F5EC0B #F8F046 #FAF581 #FCFABC #FEFDE2

Accessibility & contrast

On white

1.14
#FAF581 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.44
#FAF581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF581
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF581#FFFFFF#000000##000000
##FAF5811.001.1418.4418.44
#FFFFFF1.141.0021.0021.00
#00000018.4421.001.001.00
##00000018.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED77
Deuteranopia (green-blind)
#FFF387
Tritanopia (blue-blind)
#FFE8DA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #faf581;
/* rgb */ color: rgb(250, 245, 129);
/* oklch */ color: oklch(95.1% 0.138 106.5);
Tailwind
colors: {
  custom: {
    50: '#fef8a8',
    500: '#faf581',
    950: '#000000',
  },
}
SCSS
$custom: #faf581;
$custom-light: #fef8a8;
$custom-dark: #000000;
JSON
{
  "hex": "#faf581",
  "rgb": {
    "r": 250,
    "g": 245,
    "b": 129
  },
  "hsl": {
    "h": 57.521,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.95072,
    "c": 0.13837,
    "h": 106.5
  },
  "luminance": 0.87214
}

Semantic roles & 50–950 ramp

primary
#FAF581
secondary
#484ED8
accent
#09E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FAF581

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

Preview Lab → · Contrast checker → · Palette generator →

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