#F5D562#F5D562

#F5D562 is a very light, vivid yellow. Relative luminance 0.679; OKLCH L 87.8% C 0.138 H 93.8°. Best body text is #000000 at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#F5D562
RGBrgb(245, 213, 98)
HSLhsl(47, 88%, 67%)
HSVhsv(47, 60%, 96%)
CMYKcmyk(0%, 13.1%, 60%, 3.9%)
CIE-LABlab(85.95, -1.97, 59.67)
CIE-LCHlch(85.95, 59.70, 91.90°)
OKLaboklab(87.83% -0.0092 0.1376)
OKLCHoklch(87.83% 0.138 93.8)
XYZxyz(63.6578, 67.8860, 21.3032)
Luminance0.6788 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D562 #6282F5
analogous
#F58C62 #F5D562 #CBF562
triadic
#F5D562 #62F5D5 #D562F5
tetradic
#F5D562 #62F58C #6282F5 #F562CB
square
#F5D562 #62F58C #6282F5 #F562CB
split-complementary
#F5D562 #62CBF5 #8C62F5
monochromatic
#CFA50D #F1C628 #F5D562 #F9E49C #FCF4D5

Accessibility & contrast

On white

1.44
#F5D562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.58
#F5D562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D562
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D562#FFFFFF#000000##000000
##F5D5621.001.4414.5814.58
#FFFFFF1.441.0021.0021.00
#00000014.5821.001.001.00
##00000014.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D156
Deuteranopia (green-blind)
#F1DB67
Tritanopia (blue-blind)
#FFC6BC
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f5d562;
/* rgb */ color: rgb(245, 213, 98);
/* oklch */ color: oklch(87.8% 0.138 93.8);
Tailwind
colors: {
  custom: {
    50: '#fce192',
    500: '#f5d562',
    950: '#000000',
  },
}
SCSS
$custom: #f5d562;
$custom-light: #fce192;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d562",
  "rgb": {
    "r": 245,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 46.939,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.87827,
    "c": 0.13792,
    "h": 93.8
  },
  "luminance": 0.67883
}

Semantic roles & 50–950 ramp

primary
#F5D562
secondary
#3052CB
accent
#32E501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F5D562

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

Preview Lab → · Contrast checker → · Palette generator →

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