#FFEC56#FFEC56

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

Color values

HEX#FFEC56
RGBrgb(255, 236, 86)
HSLhsl(53, 100%, 67%)
HSVhsv(53, 66%, 100%)
CMYKcmyk(0%, 7.5%, 66.3%, 0%)
CIE-LABlab(92.54, -10.13, 72.00)
CIE-LCHlch(92.54, 72.71, 98.01°)
OKLaboklab(93.22% -0.0345 0.1618)
OKLCHoklch(93.22% 0.165 102)
XYZxyz(72.9182, 81.9258, 20.7746)
Luminance0.8192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC56 #5669FF
analogous
#FF9756 #FFEC56 #BEFF56
triadic
#FFEC56 #56FFEC #EC56FF
tetradic
#FFEC56 #56FF97 #5669FF #FF56BE
square
#FFEC56 #56FF97 #5669FF #FF56BE
split-complementary
#FFEC56 #56BEFF #9756FF
monochromatic
#DBC200 #FFE519 #FFEC56 #FFF393 #FFFAD0

Accessibility & contrast

On white

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

On black

17.38
#FFEC56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC56
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC56#FFFFFF#000000##000000
##FFEC561.001.2117.3817.38
#FFFFFF1.211.0021.0021.00
#00000017.3821.001.001.00
##00000017.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE541
Deuteranopia (green-blind)
#FFED5F
Tritanopia (blue-blind)
#FFDCCD
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ffec56;
/* rgb */ color: rgb(255, 236, 86);
/* oklch */ color: oklch(93.2% 0.165 102.0);
Tailwind
colors: {
  custom: {
    50: '#fff18d',
    500: '#ffec56',
    950: '#000000',
  },
}
SCSS
$custom: #ffec56;
$custom-light: #fff18d;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec56",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 86
  },
  "hsl": {
    "h": 53.254,
    "s": 100,
    "l": 66.863
  },
  "oklch": {
    "l": 0.93224,
    "c": 0.16543,
    "h": 102
  },
  "luminance": 0.81923
}

Semantic roles & 50–950 ramp

primary
#FFEC56
secondary
#2539D4
accent
#1AE600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#19160D
muted
#87857F

Preview Lab

Preview with #FFEC56

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

Preview Lab → · Contrast checker → · Palette generator →

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