#FAF057#FAF057

#FAF057 is a very light, vivid yellow. Relative luminance 0.833; OKLCH L 93.6% C 0.169 H 105.6°. Best body text is #000000 at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#FAF057
RGBrgb(250, 240, 87)
HSLhsl(56, 94%, 66%)
HSVhsv(56, 65%, 98%)
CMYKcmyk(0%, 4%, 65.2%, 2%)
CIE-LABlab(93.16, -14.08, 72.12)
CIE-LCHlch(93.16, 73.48, 101.05°)
OKLaboklab(93.62% -0.0453 0.1624)
OKLCHoklch(93.62% 0.169 105.6)
XYZxyz(72.3074, 83.3349, 21.2914)
Luminance0.8333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF057 #5761FA
analogous
#FA9E57 #FAF057 #B2FA57
triadic
#FAF057 #57FAF0 #F057FA
tetradic
#FAF057 #57FA9E #5761FA #FA57B2
square
#FAF057 #57FA9E #5761FA #FA57B2
split-complementary
#FAF057 #57B2FA #9E57FA
monochromatic
#D0C406 #F8EB1C #FAF057 #FCF592 #FEFBCE

Accessibility & contrast

On white

1.19
#FAF057 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.67
#FAF057 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF057
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF057#FFFFFF#000000##000000
##FAF0571.001.1917.6717.67
#FFFFFF1.191.0021.0021.00
#00000017.6721.001.001.00
##00000017.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE842
Deuteranopia (green-blind)
#FFEE61
Tritanopia (blue-blind)
#FFE1D1
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #faf057;
/* rgb */ color: rgb(250, 240, 87);
/* oklch */ color: oklch(93.6% 0.169 105.6);
Tailwind
colors: {
  custom: {
    50: '#fff48e',
    500: '#faf057',
    950: '#000000',
  },
}
SCSS
$custom: #faf057;
$custom-light: #fff48e;
$custom-dark: #000000;
JSON
{
  "hex": "#faf057",
  "rgb": {
    "r": 250,
    "g": 240,
    "b": 87
  },
  "hsl": {
    "h": 56.319,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.9362,
    "c": 0.16855,
    "h": 105.6
  },
  "luminance": 0.83332
}

Semantic roles & 50–950 ramp

primary
#FAF057
secondary
#2A34CB
accent
#0EE600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #FAF057

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

Preview Lab → · Contrast checker → · Palette generator →

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