#ECF28C#ECF28C

#ECF28C is a very light, vivid yellow. Relative luminance 0.832; OKLCH L 93.5% C 0.126 H 111.5°. Best body text is #000000 at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#ECF28C
RGBrgb(236, 242, 140)
HSLhsl(64, 80%, 75%)
HSVhsv(64, 42%, 95%)
CMYKcmyk(2.5%, 0%, 42.1%, 5.1%)
CIE-LABlab(93.12, -16.49, 48.41)
CIE-LCHlch(93.12, 51.14, 108.81°)
OKLaboklab(93.49% -0.0461 0.1169)
OKLCHoklch(93.49% 0.126 111.5)
XYZxyz(71.0788, 83.2318, 37.1268)
Luminance0.8323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF28C #928CF2
analogous
#F2C58C #ECF28C #B9F28C
triadic
#ECF28C #8CECF2 #F28CEC
tetradic
#ECF28C #8CF2C5 #928CF2 #F28CB9
square
#ECF28C #8CF2C5 #928CF2 #F28CB9
split-complementary
#ECF28C #8CB9F2 #C58CF2
monochromatic
#DAE61E #E3EC55 #ECF28C #F5F8C3 #FAFCE4

Accessibility & contrast

On white

1.19
#ECF28C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.65
#ECF28C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF28C
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF28C#FFFFFF#000000##000000
##ECF28C1.001.1917.6517.65
#FFFFFF1.191.0021.0021.00
#00000017.6521.001.001.00
##00000017.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA84
Deuteranopia (green-blind)
#FFED91
Tritanopia (blue-blind)
#F8E7DA
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ecf28c;
/* rgb */ color: rgb(236, 242, 140);
/* oklch */ color: oklch(93.5% 0.126 111.5);
Tailwind
colors: {
  custom: {
    50: '#f4f6af',
    500: '#ecf28c',
    950: '#000000',
  },
}
SCSS
$custom: #ecf28c;
$custom-light: #f4f6af;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf28c",
  "rgb": {
    "r": 236,
    "g": 242,
    "b": 140
  },
  "hsl": {
    "h": 63.529,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.93489,
    "c": 0.12564,
    "h": 111.5
  },
  "luminance": 0.83231
}

Semantic roles & 50–950 ramp

primary
#ECF28C
secondary
#5B54CE
accent
#0ADC16
background
#FFFFFD
surface
#FEFEF7
border
#D6D6D0
text
#171710
muted
#858581

Preview Lab

Preview with #ECF28C

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

Preview Lab → · Contrast checker → · Palette generator →

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