#FFEC7B#FFEC7B

#FFEC7B is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.6% C 0.135 H 99.9°. Best body text is #000000 at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#FFEC7B
RGBrgb(255, 236, 123)
HSLhsl(51, 100%, 74%)
HSVhsv(51, 52%, 100%)
CMYKcmyk(0%, 7.5%, 51.8%, 0%)
CIE-LABlab(92.88, -7.64, 56.49)
CIE-LCHlch(92.88, 57.01, 97.70°)
OKLaboklab(93.6% -0.0233 0.1333)
OKLCHoklch(93.6% 0.135 99.9)
XYZxyz(74.8130, 82.6838, 30.7538)
Luminance0.8268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC7B #7B8EFF
analogous
#FFAA7B #FFEC7B #D0FF7B
triadic
#FFEC7B #7BFFEC #EC7BFF
tetradic
#FFEC7B #7BFFAA #7B8EFF #FF7BD0
square
#FFEC7B #7BFFAA #7B8EFF #FF7BD0
split-complementary
#FFEC7B #7BD0FF #AA7BFF
monochromatic
#FFDA01 #FFE33E #FFEC7B #FFF5B8 #FFFBE0

Accessibility & contrast

On white

1.20
#FFEC7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.54
#FFEC7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC7B
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC7B#FFFFFF#000000##000000
##FFEC7B1.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE671
Deuteranopia (green-blind)
#FFEE80
Tritanopia (blue-blind)
#FFDED2
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec7b;
/* rgb */ color: rgb(255, 236, 123);
/* oklch */ color: oklch(93.6% 0.135 99.9);
Tailwind
colors: {
  custom: {
    50: '#fff1a4',
    500: '#ffec7b',
    950: '#000000',
  },
}
SCSS
$custom: #ffec7b;
$custom-light: #fff1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec7b",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 123
  },
  "hsl": {
    "h": 51.364,
    "s": 100,
    "l": 74.118
  },
  "oklch": {
    "l": 0.93596,
    "c": 0.13528,
    "h": 99.9
  },
  "luminance": 0.82681
}

Semantic roles & 50–950 ramp

primary
#FFEC7B
secondary
#4157DD
accent
#21E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #FFEC7B

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

Preview Lab → · Contrast checker → · Palette generator →

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