#ECE28F#ECE28F

#ECE28F is a very light, moderate yellow. Relative luminance 0.742; OKLCH L 90.2% C 0.104 H 102.3°. Best body text is #000000 at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#ECE28F
RGBrgb(236, 226, 143)
HSLhsl(54, 71%, 74%)
HSVhsv(54, 39%, 93%)
CMYKcmyk(0%, 4.2%, 39.4%, 7.5%)
CIE-LABlab(89.02, -8.25, 41.77)
CIE-LCHlch(89.02, 42.58, 101.17°)
OKLaboklab(90.25% -0.0222 0.102)
OKLCHoklch(90.25% 0.104 102.3)
XYZxyz(66.7475, 74.2105, 36.7893)
Luminance0.7421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECE28F #8F99EC
analogous
#ECB48F #ECE28F #C8EC8F
triadic
#ECE28F #8FECE2 #E28FEC
tetradic
#ECE28F #8FECB4 #8F99EC #EC8FC8
square
#ECE28F #8FECB4 #8F99EC #EC8FC8
split-complementary
#ECE28F #8FC8EC #B48FEC
monochromatic
#DAC726 #E3D45B #ECE28F #F5F0C3 #FBF8E5

Accessibility & contrast

On white

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

On black

15.84
#ECE28F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECE28F
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECE28F#FFFFFF#000000##000000
##ECE28F1.001.3315.8415.84
#FFFFFF1.331.0021.0021.00
#00000015.8421.001.001.00
##00000015.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DD89
Deuteranopia (green-blind)
#F3E292
Tritanopia (blue-blind)
#F9D7CD
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #ece28f;
/* rgb */ color: rgb(236, 226, 143);
/* oklch */ color: oklch(90.2% 0.104 102.3);
Tailwind
colors: {
  custom: {
    50: '#f3ebb1',
    500: '#ece28f',
    950: '#000000',
  },
}
SCSS
$custom: #ece28f;
$custom-light: #f3ebb1;
$custom-dark: #000000;
JSON
{
  "hex": "#ece28f",
  "rgb": {
    "r": 236,
    "g": 226,
    "b": 143
  },
  "hsl": {
    "h": 53.548,
    "s": 70.992,
    "l": 74.314
  },
  "oklch": {
    "l": 0.90249,
    "c": 0.10443,
    "h": 102.3
  },
  "luminance": 0.74209
}

Semantic roles & 50–950 ramp

primary
#ECE28F
secondary
#5864C7
accent
#27D312
background
#FFFEFD
surface
#FEFDF7
border
#D6D5D0
text
#171611
muted
#858481

Preview Lab

Preview with #ECE28F

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

Preview Lab → · Contrast checker → · Palette generator →

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