#FFEC3A#FFEC3A

#FFEC3A is a very light, vivid yellow. Relative luminance 0.816; OKLCH L 93.0% C 0.182 H 102.9°. Best body text is #000000 at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#FFEC3A
RGBrgb(255, 236, 58)
HSLhsl(54, 100%, 61%)
HSVhsv(54, 77%, 100%)
CMYKcmyk(0%, 7.5%, 77.3%, 0%)
CIE-LABlab(92.38, -11.36, 81.43)
CIE-LCHlch(92.38, 82.22, 97.94°)
OKLaboklab(93.04% -0.0406 0.1769)
OKLCHoklch(93.04% 0.182 102.9)
XYZxyz(72.0025, 81.5596, 15.9521)
Luminance0.8156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC3A #3A4DFF
analogous
#FF8A3A #FFEC3A #B0FF3A
triadic
#FFEC3A #3AFFEC #EC3AFF
tetradic
#FFEC3A #3AFF8A #3A4DFF #FF3AB0
square
#FFEC3A #3AFF8A #3A4DFF #FF3AB0
split-complementary
#FFEC3A #3AB0FF #8A3AFF
monochromatic
#BFAC00 #FCE400 #FFEC3A #FFF277 #FFF8B4

Accessibility & contrast

On white

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

On black

17.31
#FFEC3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC3A
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC3A#FFFFFF#000000##000000
##FFEC3A1.001.2117.3117.31
#FFFFFF1.211.0021.0021.00
#00000017.3121.001.001.00
##00000017.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE401
Deuteranopia (green-blind)
#FFED48
Tritanopia (blue-blind)
#FFDBCB
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ffec3a;
/* rgb */ color: rgb(255, 236, 58);
/* oklch */ color: oklch(93.0% 0.182 102.9);
Tailwind
colors: {
  custom: {
    50: '#fff17f',
    500: '#ffec3a',
    950: '#000000',
  },
}
SCSS
$custom: #ffec3a;
$custom-light: #fff17f;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec3a",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 58
  },
  "hsl": {
    "h": 54.213,
    "s": 100,
    "l": 61.373
  },
  "oklch": {
    "l": 0.93044,
    "c": 0.18151,
    "h": 102.9
  },
  "luminance": 0.81556
}

Semantic roles & 50–950 ramp

primary
#FFEC3A
secondary
#2130BC
accent
#16E600
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#19160B
muted
#87857E

Preview Lab

Preview with #FFEC3A

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

Preview Lab → · Contrast checker → · Palette generator →

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