#ECF878#ECF878

#ECF878 is a very light, vivid yellow. Relative luminance 0.863; OKLCH L 94.5% C 0.152 H 113.8°. Best body text is #000000 at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#ECF878
RGBrgb(236, 248, 120)
HSLhsl(66, 90%, 72%)
HSVhsv(66, 52%, 97%)
CMYKcmyk(4.8%, 0%, 51.6%, 2.7%)
CIE-LABlab(94.45, -21.24, 59.35)
CIE-LCHlch(94.45, 63.03, 109.69°)
OKLaboklab(94.48% -0.0614 0.1395)
OKLCHoklch(94.48% 0.152 113.8)
XYZxyz(71.5510, 86.3249, 30.6588)
Luminance0.8632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF878 #8478F8
analogous
#F8C478 #ECF878 #ACF878
triadic
#ECF878 #78ECF8 #F878EC
tetradic
#ECF878 #78F8C4 #8478F8 #F878AC
square
#ECF878 #78F8C4 #8478F8 #F878AC
split-complementary
#ECF878 #78ACF8 #C478F8
monochromatic
#D5E90C #E4F53E #ECF878 #F4FBB2 #FBFDE2

Accessibility & contrast

On white

1.15
#ECF878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.26
#ECF878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF878
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF878#FFFFFF#000000##000000
##ECF8781.001.1518.2618.26
#FFFFFF1.151.0021.0021.00
#00000018.2621.001.001.00
##00000018.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE6C
Deuteranopia (green-blind)
#FFF07F
Tritanopia (blue-blind)
#F9ECDB
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf878;
/* rgb */ color: rgb(236, 248, 120);
/* oklch */ color: oklch(94.5% 0.152 113.8);
Tailwind
colors: {
  custom: {
    50: '#f4faa2',
    500: '#ecf878',
    950: '#000000',
  },
}
SCSS
$custom: #ecf878;
$custom-light: #f4faa2;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf878",
  "rgb": {
    "r": 236,
    "g": 248,
    "b": 120
  },
  "hsl": {
    "h": 65.625,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.94479,
    "c": 0.15238,
    "h": 113.8
  },
  "luminance": 0.86324
}

Semantic roles & 50–950 ramp

primary
#ECF878
secondary
#4E40D4
accent
#00E616
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF878

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

Preview Lab → · Contrast checker → · Palette generator →

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