#F5E052#F5E052

#F5E052 is a very light, vivid yellow. Relative luminance 0.733; OKLCH L 89.9% C 0.158 H 100.8°. Best body text is #000000 at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#F5E052
RGBrgb(245, 224, 82)
HSLhsl(52, 89%, 64%)
HSVhsv(52, 67%, 96%)
CMYKcmyk(0%, 8.6%, 66.5%, 3.9%)
CIE-LABlab(88.61, -8.49, 69.25)
CIE-LCHlch(88.61, 69.77, 96.99°)
OKLaboklab(89.89% -0.0297 0.1557)
OKLCHoklch(89.89% 0.158 100.8)
XYZxyz(65.8377, 73.3359, 18.6683)
Luminance0.7333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E052 #5267F5
analogous
#F58F52 #F5E052 #B9F552
triadic
#F5E052 #52F5E0 #E052F5
tetradic
#F5E052 #52F58F #5267F5 #F552B9
square
#F5E052 #52F58F #5267F5 #F552B9
split-complementary
#F5E052 #52B9F5 #8F52F5
monochromatic
#C1AA0B #F2D618 #F5E052 #F8EA8C #FCF5C6

Accessibility & contrast

On white

1.34
#F5E052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.67
#F5E052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E052
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E052#FFFFFF#000000##000000
##F5E0521.001.3415.6715.67
#FFFFFF1.341.0021.0021.00
#00000015.6721.001.001.00
##00000015.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DA3F
Deuteranopia (green-blind)
#FAE25A
Tritanopia (blue-blind)
#FFD1C3
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f5e052;
/* rgb */ color: rgb(245, 224, 82);
/* oklch */ color: oklch(89.9% 0.158 100.8);
Tailwind
colors: {
  custom: {
    50: '#fce98a',
    500: '#f5e052',
    950: '#000000',
  },
}
SCSS
$custom: #f5e052;
$custom-light: #fce98a;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e052",
  "rgb": {
    "r": 245,
    "g": 224,
    "b": 82
  },
  "hsl": {
    "h": 52.27,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.8989,
    "c": 0.15845,
    "h": 100.8
  },
  "luminance": 0.73333
}

Semantic roles & 50–950 ramp

primary
#F5E052
secondary
#2C3FBF
accent
#1EE600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F5E052

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

Preview Lab → · Contrast checker → · Palette generator →

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