#F5DE52#F5DE52

#F5DE52 is a very light, vivid yellow. Relative luminance 0.723; OKLCH L 89.5% C 0.157 H 99.8°. Best body text is #000000 at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#F5DE52
RGBrgb(245, 222, 82)
HSLhsl(52, 89%, 64%)
HSVhsv(52, 67%, 96%)
CMYKcmyk(0%, 9.4%, 66.5%, 3.9%)
CIE-LABlab(88.10, -7.49, 68.72)
CIE-LCHlch(88.10, 69.13, 96.22°)
OKLaboklab(89.48% -0.0268 0.1545)
OKLCHoklch(89.48% 0.157 99.8)
XYZxyz(65.3033, 72.2672, 18.4902)
Luminance0.7226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DE52 #5269F5
analogous
#F58D52 #F5DE52 #BAF552
triadic
#F5DE52 #52F5DE #DE52F5
tetradic
#F5DE52 #52F58D #5269F5 #F552BA
square
#F5DE52 #52F58D #5269F5 #F552BA
split-complementary
#F5DE52 #52BAF5 #8D52F5
monochromatic
#C1A80B #F2D318 #F5DE52 #F8E98C #FCF4C6

Accessibility & contrast

On white

1.36
#F5DE52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.45
#F5DE52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DE52
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DE52#FFFFFF#000000##000000
##F5DE521.001.3615.4515.45
#FFFFFF1.361.0021.0021.00
#00000015.4521.001.001.00
##00000015.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D83F
Deuteranopia (green-blind)
#F9E15A
Tritanopia (blue-blind)
#FFCFC1
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f5de52;
/* rgb */ color: rgb(245, 222, 82);
/* oklch */ color: oklch(89.5% 0.157 99.8);
Tailwind
colors: {
  custom: {
    50: '#fce789',
    500: '#f5de52',
    950: '#000000',
  },
}
SCSS
$custom: #f5de52;
$custom-light: #fce789;
$custom-dark: #000000;
JSON
{
  "hex": "#f5de52",
  "rgb": {
    "r": 245,
    "g": 222,
    "b": 82
  },
  "hsl": {
    "h": 51.534,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.89484,
    "c": 0.15685,
    "h": 99.8
  },
  "luminance": 0.72264
}

Semantic roles & 50–950 ramp

primary
#F5DE52
secondary
#2C41BF
accent
#20E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F5DE52

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

Preview Lab → · Contrast checker → · Palette generator →

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