#F5DF52#F5DF52

#F5DF52 is a very light, vivid yellow. Relative luminance 0.728; OKLCH L 89.7% C 0.158 H 100.3°. Best body text is #000000 at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#F5DF52
RGBrgb(245, 223, 82)
HSLhsl(52, 89%, 64%)
HSVhsv(52, 67%, 96%)
CMYKcmyk(0%, 9%, 66.5%, 3.9%)
CIE-LABlab(88.35, -7.99, 68.99)
CIE-LCHlch(88.35, 69.45, 96.61°)
OKLaboklab(89.69% -0.0283 0.1551)
OKLCHoklch(89.69% 0.158 100.3)
XYZxyz(65.5697, 72.7999, 18.5790)
Luminance0.7280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF52 #5268F5
analogous
#F58E52 #F5DF52 #BAF552
triadic
#F5DF52 #52F5DF #DF52F5
tetradic
#F5DF52 #52F58E #5268F5 #F552BA
square
#F5DF52 #52F58E #5268F5 #F552BA
split-complementary
#F5DF52 #52BAF5 #8E52F5
monochromatic
#C1A90B #F2D418 #F5DF52 #F8EA8C #FCF4C6

Accessibility & contrast

On white

1.35
#F5DF52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.56
#F5DF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF52
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF52#FFFFFF#000000##000000
##F5DF521.001.3515.5615.56
#FFFFFF1.351.0021.0021.00
#00000015.5621.001.001.00
##00000015.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D93F
Deuteranopia (green-blind)
#F9E15A
Tritanopia (blue-blind)
#FFD0C2
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f5df52;
/* rgb */ color: rgb(245, 223, 82);
/* oklch */ color: oklch(89.7% 0.158 100.3);
Tailwind
colors: {
  custom: {
    50: '#fce88a',
    500: '#f5df52',
    950: '#000000',
  },
}
SCSS
$custom: #f5df52;
$custom-light: #fce88a;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df52",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 82
  },
  "hsl": {
    "h": 51.902,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.89687,
    "c": 0.15765,
    "h": 100.3
  },
  "luminance": 0.72797
}

Semantic roles & 50–950 ramp

primary
#F5DF52
secondary
#2C40BF
accent
#1FE600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F5DF52

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

Preview Lab → · Contrast checker → · Palette generator →

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