#FFD962#FFD962

#FFD962 is a very light, vivid yellow. Relative luminance 0.718; OKLCH L 89.5% C 0.142 H 91.5°. Best body text is #000000 at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#FFD962
RGBrgb(255, 217, 98)
HSLhsl(45, 100%, 69%)
HSVhsv(45, 62%, 100%)
CMYKcmyk(0%, 14.9%, 61.6%, 0%)
CIE-LABlab(87.86, 0.10, 62.04)
CIE-LCHlch(87.86, 62.04, 89.91°)
OKLaboklab(89.55% -0.0038 0.1424)
OKLCHoklch(89.55% 0.142 91.5)
XYZxyz(68.2607, 71.7712, 21.8107)
Luminance0.7177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFD962 #6288FF
analogous
#FF8B62 #FFD962 #D6FF62
triadic
#FFD962 #62FFD9 #D962FF
tetradic
#FFD962 #62FF8B #6288FF #FF62D6
square
#FFD962 #62FF8B #6288FF #FF62D6
split-complementary
#FFD962 #62D6FF #8B62FF
monochromatic
#E7AF00 #FFCA25 #FFD962 #FFE89F #FFF7DC

Accessibility & contrast

On white

1.37
#FFD962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.35
#FFD962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFD962
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFD962#FFFFFF#000000##000000
##FFD9621.001.3715.3515.35
#FFFFFF1.371.0021.0021.00
#00000015.3521.001.001.00
##00000015.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED655
Deuteranopia (green-blind)
#F8E167
Tritanopia (blue-blind)
#FFC9BF
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #ffd962;
/* rgb */ color: rgb(255, 217, 98);
/* oklch */ color: oklch(89.5% 0.142 91.5);
Tailwind
colors: {
  custom: {
    50: '#ffe493',
    500: '#ffd962',
    950: '#000000',
  },
}
SCSS
$custom: #ffd962;
$custom-light: #ffe493;
$custom-dark: #000000;
JSON
{
  "hex": "#ffd962",
  "rgb": {
    "r": 255,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 45.478,
    "s": 100,
    "l": 69.216
  },
  "oklch": {
    "l": 0.89547,
    "c": 0.14249,
    "h": 91.5
  },
  "luminance": 0.71768
}

Semantic roles & 50–950 ramp

primary
#FFD962
secondary
#2C56DA
accent
#38E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#19150D
muted
#87847F

Preview Lab

Preview with #FFD962

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

Preview Lab → · Contrast checker → · Palette generator →

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