#F5D962#F5D962

#F5D962 is a very light, vivid yellow. Relative luminance 0.699; OKLCH L 88.6% C 0.141 H 96.1°. Best body text is #000000 at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#F5D962
RGBrgb(245, 217, 98)
HSLhsl(49, 88%, 67%)
HSVhsv(49, 60%, 96%)
CMYKcmyk(0%, 11.4%, 60%, 3.9%)
CIE-LABlab(86.96, -4.01, 60.80)
CIE-LCHlch(86.96, 60.93, 93.77°)
OKLaboklab(88.63% -0.015 0.14)
OKLCHoklch(88.63% 0.141 96.1)
XYZxyz(64.6764, 69.9231, 21.6427)
Luminance0.6992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D962 #627EF5
analogous
#F58F62 #F5D962 #C8F562
triadic
#F5D962 #62F5D9 #D962F5
tetradic
#F5D962 #62F58F #627EF5 #F562C8
square
#F5D962 #62F58F #627EF5 #F562C8
split-complementary
#F5D962 #62C8F5 #8F62F5
monochromatic
#CFAA0D #F1CB28 #F5D962 #F9E79C #FCF5D5

Accessibility & contrast

On white

1.40
#F5D962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.98
#F5D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D962
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D962#FFFFFF#000000##000000
##F5D9621.001.4014.9814.98
#FFFFFF1.401.0021.0021.00
#00000014.9821.001.001.00
##00000014.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD555
Deuteranopia (green-blind)
#F4DE68
Tritanopia (blue-blind)
#FFCABF
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f5d962;
/* rgb */ color: rgb(245, 217, 98);
/* oklch */ color: oklch(88.6% 0.141 96.1);
Tailwind
colors: {
  custom: {
    50: '#fce493',
    500: '#f5d962',
    950: '#000000',
  },
}
SCSS
$custom: #f5d962;
$custom-light: #fce493;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d962",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 48.571,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.88625,
    "c": 0.14083,
    "h": 96.1
  },
  "luminance": 0.6992
}

Semantic roles & 50–950 ramp

primary
#F5D962
secondary
#304ECB
accent
#2CE501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F5D962

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

Preview Lab → · Contrast checker → · Palette generator →

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