#FFEC4B#FFEC4B

#FFEC4B is a very light, vivid yellow. Relative luminance 0.818; OKLCH L 93.1% C 0.172 H 102.4°. Best body text is #000000 at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#FFEC4B
RGBrgb(255, 236, 75)
HSLhsl(54, 100%, 65%)
HSVhsv(54, 71%, 100%)
CMYKcmyk(0%, 7.5%, 70.6%, 0%)
CIE-LABlab(92.47, -10.68, 76.01)
CIE-LCHlch(92.47, 76.76, 98.00°)
OKLaboklab(93.14% -0.0371 0.1685)
OKLCHoklch(93.14% 0.172 102.4)
XYZxyz(72.5086, 81.7620, 18.6176)
Luminance0.8176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC4B #4B5EFF
analogous
#FF924B #FFEC4B #B8FF4B
triadic
#FFEC4B #4BFFEC #EC4BFF
tetradic
#FFEC4B #4BFF92 #4B5EFF #FF4BB8
square
#FFEC4B #4BFF92 #4B5EFF #FF4BB8
split-complementary
#FFEC4B #4BB8FF #924BFF
monochromatic
#D0BA00 #FFE60E #FFEC4B #FFF288 #FFF9C5

Accessibility & contrast

On white

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

On black

17.35
#FFEC4B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC4B
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC4B#FFFFFF#000000##000000
##FFEC4B1.001.2117.3517.35
#FFFFFF1.211.0021.0021.00
#00000017.3521.001.001.00
##00000017.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE530
Deuteranopia (green-blind)
#FFED56
Tritanopia (blue-blind)
#FFDCCC
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ffec4b;
/* rgb */ color: rgb(255, 236, 75);
/* oklch */ color: oklch(93.1% 0.172 102.4);
Tailwind
colors: {
  custom: {
    50: '#fff187',
    500: '#ffec4b',
    950: '#000000',
  },
}
SCSS
$custom: #ffec4b;
$custom-light: #fff187;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec4b",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 75
  },
  "hsl": {
    "h": 53.667,
    "s": 100,
    "l": 64.706
  },
  "oklch": {
    "l": 0.93144,
    "c": 0.17249,
    "h": 102.4
  },
  "luminance": 0.81759
}

Semantic roles & 50–950 ramp

primary
#FFEC4B
secondary
#2435CA
accent
#18E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#19160C
muted
#87857F

Preview Lab

Preview with #FFEC4B

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

Preview Lab → · Contrast checker → · Palette generator →

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