#FAF462#FAF462

#FAF462 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.5% C 0.164 H 106.9°. Best body text is #000000 at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#FAF462
RGBrgb(250, 244, 98)
HSLhsl(58, 94%, 68%)
HSVhsv(58, 61%, 98%)
CMYKcmyk(0%, 2.4%, 60.8%, 2%)
CIE-LABlab(94.27, -15.38, 68.92)
CIE-LCHlch(94.27, 70.61, 102.58°)
OKLaboklab(94.53% -0.0478 0.1572)
OKLCHoklch(94.53% 0.164 106.9)
XYZxyz(73.9821, 85.9095, 24.2380)
Luminance0.8591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF462 #6268FA
analogous
#FAA862 #FAF462 #B4FA62
triadic
#FAF462 #62FAF4 #F462FA
tetradic
#FAF462 #62FAA8 #6268FA #FA62B4
square
#FAF462 #62FAA8 #6268FA #FA62B4
split-complementary
#FAF462 #62B4FA #A862FA
monochromatic
#DBD207 #F8F027 #FAF462 #FCF89D #FEFCD9

Accessibility & contrast

On white

1.16
#FAF462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.18
#FAF462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF462
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF462#FFFFFF#000000##000000
##FAF4621.001.1618.1818.18
#FFFFFF1.161.0021.0021.00
#00000018.1821.001.001.00
##00000018.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB51
Deuteranopia (green-blind)
#FFF16B
Tritanopia (blue-blind)
#FFE5D5
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #faf462;
/* rgb */ color: rgb(250, 244, 98);
/* oklch */ color: oklch(94.5% 0.164 106.9);
Tailwind
colors: {
  custom: {
    50: '#fff794',
    500: '#faf462',
    950: '#000000',
  },
}
SCSS
$custom: #faf462;
$custom-light: #fff794;
$custom-dark: #000000;
JSON
{
  "hex": "#faf462",
  "rgb": {
    "r": 250,
    "g": 244,
    "b": 98
  },
  "hsl": {
    "h": 57.632,
    "s": 93.827,
    "l": 68.235
  },
  "oklch": {
    "l": 0.94533,
    "c": 0.16428,
    "h": 106.9
  },
  "luminance": 0.85907
}

Semantic roles & 50–950 ramp

primary
#FAF462
secondary
#2D33D3
accent
#09E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #FAF462

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

Preview Lab → · Contrast checker → · Palette generator →

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