#FFEC5F#FFEC5F

#FFEC5F is a very light, vivid yellow. Relative luminance 0.821; OKLCH L 93.3% C 0.159 H 101.6°. Best body text is #000000 at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#FFEC5F
RGBrgb(255, 236, 95)
HSLhsl(53, 100%, 69%)
HSVhsv(53, 63%, 100%)
CMYKcmyk(0%, 7.5%, 62.7%, 0%)
CIE-LABlab(92.61, -9.62, 68.48)
CIE-LCHlch(92.61, 69.16, 98.00°)
OKLaboklab(93.3% -0.032 0.1557)
OKLCHoklch(93.3% 0.159 101.6)
XYZxyz(73.3039, 82.0801, 22.8060)
Luminance0.8208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC5F #5F72FF
analogous
#FF9C5F #FFEC5F #C2FF5F
triadic
#FFEC5F #5FFFEC #EC5FFF
tetradic
#FFEC5F #5FFF9C #5F72FF #FF5FC2
square
#FFEC5F #5FFF9C #5F72FF #FF5FC2
split-complementary
#FFEC5F #5FC2FF #9C5FFF
monochromatic
#E4C900 #FFE522 #FFEC5F #FFF39C #FFFBD9

Accessibility & contrast

On white

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

On black

17.42
#FFEC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC5F
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC5F#FFFFFF#000000##000000
##FFEC5F1.001.2117.4217.42
#FFFFFF1.211.0021.0021.00
#00000017.4221.001.001.00
##00000017.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE54E
Deuteranopia (green-blind)
#FFED67
Tritanopia (blue-blind)
#FFDCCE
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ffec5f;
/* rgb */ color: rgb(255, 236, 95);
/* oklch */ color: oklch(93.3% 0.159 101.6);
Tailwind
colors: {
  custom: {
    50: '#fff192',
    500: '#ffec5f',
    950: '#000000',
  },
}
SCSS
$custom: #ffec5f;
$custom-light: #fff192;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec5f",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 95
  },
  "hsl": {
    "h": 52.875,
    "s": 100,
    "l": 68.627
  },
  "oklch": {
    "l": 0.933,
    "c": 0.15897,
    "h": 101.6
  },
  "luminance": 0.82077
}

Semantic roles & 50–950 ramp

primary
#FFEC5F
secondary
#293ED9
accent
#1BE600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#19160D
muted
#87857F

Preview Lab

Preview with #FFEC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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