#F5D452#F5D452

#F5D452 is a very light, vivid yellow. Relative luminance 0.671; OKLCH L 87.5% C 0.149 H 94.8°. Best body text is #000000 at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#F5D452
RGBrgb(245, 212, 82)
HSLhsl(48, 89%, 64%)
HSVhsv(48, 67%, 96%)
CMYKcmyk(0%, 13.5%, 66.5%, 3.9%)
CIE-LABlab(85.56, -2.44, 66.09)
CIE-LCHlch(85.56, 66.14, 92.12°)
OKLaboklab(87.48% -0.0124 0.149)
OKLCHoklch(87.48% 0.15 94.8)
XYZxyz(62.7257, 67.1119, 17.6310)
Luminance0.6711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D452 #5273F5
analogous
#F58352 #F5D452 #C4F552
triadic
#F5D452 #52F5D4 #D452F5
tetradic
#F5D452 #52F583 #5273F5 #F552C4
square
#F5D452 #52F583 #5273F5 #F552C4
split-complementary
#F5D452 #52C4F5 #8352F5
monochromatic
#C19D0B #F2C618 #F5D452 #F8E28C #FCF1C6

Accessibility & contrast

On white

1.46
#F5D452 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.42
#F5D452 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D452
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D452#FFFFFF#000000##000000
##F5D4521.001.4614.4214.42
#FFFFFF1.461.0021.0021.00
#00000014.4221.001.001.00
##00000014.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D041
Deuteranopia (green-blind)
#F1DA59
Tritanopia (blue-blind)
#FFC4B9
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f5d452;
/* rgb */ color: rgb(245, 212, 82);
/* oklch */ color: oklch(87.5% 0.149 94.8);
Tailwind
colors: {
  custom: {
    50: '#fce089',
    500: '#f5d452',
    950: '#000000',
  },
}
SCSS
$custom: #f5d452;
$custom-light: #fce089;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d452",
  "rgb": {
    "r": 245,
    "g": 212,
    "b": 82
  },
  "hsl": {
    "h": 47.853,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.87476,
    "c": 0.1495,
    "h": 94.8
  },
  "luminance": 0.67109
}

Semantic roles & 50–950 ramp

primary
#F5D452
secondary
#2C4ABF
accent
#2EE600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F5D452

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

Preview Lab → · Contrast checker → · Palette generator →

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