#ECE45B#ECE45B

#ECE45B is a very light, vivid yellow. Relative luminance 0.741; OKLCH L 90.0% C 0.156 H 106.0°. Best body text is #000000 at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#ECE45B
RGBrgb(236, 228, 91)
HSLhsl(57, 79%, 64%)
HSVhsv(57, 61%, 93%)
CMYKcmyk(0%, 3.4%, 61.4%, 7.5%)
CIE-LABlab(88.96, -13.65, 65.76)
CIE-LCHlch(88.96, 67.16, 101.73°)
OKLaboklab(90.01% -0.0428 0.1499)
OKLCHoklch(90.01% 0.156 106)
XYZxyz(64.2260, 74.0771, 20.8107)
Luminance0.7408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECE45B #5B63EC
analogous
#EC9C5B #ECE45B #ABEC5B
triadic
#ECE45B #5BECE4 #E45BEC
tetradic
#ECE45B #5BEC9C #5B63EC #EC5BAB
square
#ECE45B #5BEC9C #5B63EC #EC5BAB
split-complementary
#ECE45B #5BABEC #9C5BEC
monochromatic
#B7AE15 #E6DB24 #ECE45B #F2ED92 #F9F6C9

Accessibility & contrast

On white

1.33
#ECE45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.82
#ECE45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECE45B
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECE45B#FFFFFF#000000##000000
##ECE45B1.001.3315.8215.82
#FFFFFF1.331.0021.0021.00
#00000015.8221.001.001.00
##00000015.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DC4B
Deuteranopia (green-blind)
#FAE263
Tritanopia (blue-blind)
#FCD6C7
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #ece45b;
/* rgb */ color: rgb(236, 228, 91);
/* oklch */ color: oklch(90.0% 0.156 106.0);
Tailwind
colors: {
  custom: {
    50: '#f5ec8f',
    500: '#ece45b',
    950: '#000000',
  },
}
SCSS
$custom: #ece45b;
$custom-light: #f5ec8f;
$custom-dark: #000000;
JSON
{
  "hex": "#ece45b",
  "rgb": {
    "r": 236,
    "g": 228,
    "b": 91
  },
  "hsl": {
    "h": 56.69,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.90011,
    "c": 0.15585,
    "h": 106
  },
  "luminance": 0.74075
}

Semantic roles & 50–950 ramp

primary
#ECE45B
secondary
#343CB7
accent
#16DC0A
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#17160D
muted
#85847F

Preview Lab

Preview with #ECE45B

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

Preview Lab → · Contrast checker → · Palette generator →

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