#FAF572#FAF572

#FAF572 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.9% C 0.152 H 107.0°. Best body text is #000000 at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#FAF572
RGBrgb(250, 245, 114)
HSLhsl(58, 93%, 71%)
HSVhsv(58, 54%, 98%)
CMYKcmyk(0%, 2%, 54.4%, 2%)
CIE-LABlab(94.67, -14.76, 62.55)
CIE-LCHlch(94.67, 64.27, 103.28°)
OKLaboklab(94.9% -0.0444 0.1455)
OKLCHoklch(94.9% 0.152 107)
XYZxyz(75.1162, 86.8459, 28.7224)
Luminance0.8684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF572 #7277FA
analogous
#FAB172 #FAF572 #BBFA72
triadic
#FAF572 #72FAF5 #F572FA
tetradic
#FAF572 #72FAB1 #7277FA #FA72BB
square
#FAF572 #72FAB1 #7277FA #FA72BB
split-complementary
#FAF572 #72BBFA #B172FA
monochromatic
#E9E108 #F8F137 #FAF572 #FCF9AD #FEFDE1

Accessibility & contrast

On white

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

On black

18.37
#FAF572 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF572
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF572#FFFFFF#000000##000000
##FAF5721.001.1418.3718.37
#FFFFFF1.141.0021.0021.00
#00000018.3721.001.001.00
##00000018.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED65
Deuteranopia (green-blind)
#FFF279
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #faf572;
/* rgb */ color: rgb(250, 245, 114);
/* oklch */ color: oklch(94.9% 0.152 107.0);
Tailwind
colors: {
  custom: {
    50: '#fff89e',
    500: '#faf572',
    950: '#000000',
  },
}
SCSS
$custom: #faf572;
$custom-light: #fff89e;
$custom-dark: #000000;
JSON
{
  "hex": "#faf572",
  "rgb": {
    "r": 250,
    "g": 245,
    "b": 114
  },
  "hsl": {
    "h": 57.794,
    "s": 93.151,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94897,
    "c": 0.15216,
    "h": 107
  },
  "luminance": 0.86844
}

Semantic roles & 50–950 ramp

primary
#FAF572
secondary
#3B40D6
accent
#08E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF572

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

Preview Lab → · Contrast checker → · Palette generator →

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