#FFEC52#FFEC52

#FFEC52 is a very light, vivid yellow. Relative luminance 0.819; OKLCH L 93.2% C 0.168 H 102.2°. Best body text is #000000 at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#FFEC52
RGBrgb(255, 236, 82)
HSLhsl(53, 100%, 66%)
HSVhsv(53, 68%, 100%)
CMYKcmyk(0%, 7.5%, 67.8%, 0%)
CIE-LABlab(92.51, -10.34, 73.50)
CIE-LCHlch(92.51, 74.22, 98.01°)
OKLaboklab(93.19% -0.0355 0.1643)
OKLCHoklch(93.19% 0.168 102.2)
XYZxyz(72.7616, 81.8632, 19.9495)
Luminance0.8186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC52 #5265FF
analogous
#FF9552 #FFEC52 #BCFF52
triadic
#FFEC52 #52FFEC #EC52FF
tetradic
#FFEC52 #52FF95 #5265FF #FF52BC
square
#FFEC52 #52FF95 #5265FF #FF52BC
split-complementary
#FFEC52 #52BCFF #9552FF
monochromatic
#D7BF00 #FFE515 #FFEC52 #FFF38F #FFF9CC

Accessibility & contrast

On white

1.21
#FFEC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.37
#FFEC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC52
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC52#FFFFFF#000000##000000
##FFEC521.001.2117.3717.37
#FFFFFF1.211.0021.0021.00
#00000017.3721.001.001.00
##00000017.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE53C
Deuteranopia (green-blind)
#FFED5C
Tritanopia (blue-blind)
#FFDCCD
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ffec52;
/* rgb */ color: rgb(255, 236, 82);
/* oklch */ color: oklch(93.2% 0.168 102.2);
Tailwind
colors: {
  custom: {
    50: '#fff18b',
    500: '#ffec52',
    950: '#000000',
  },
}
SCSS
$custom: #ffec52;
$custom-light: #fff18b;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec52",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 82
  },
  "hsl": {
    "h": 53.41,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.93194,
    "c": 0.16811,
    "h": 102.2
  },
  "luminance": 0.8186
}

Semantic roles & 50–950 ramp

primary
#FFEC52
secondary
#2538D0
accent
#19E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#19160C
muted
#87857F

Preview Lab

Preview with #FFEC52

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

Preview Lab → · Contrast checker → · Palette generator →

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