#ECF787#ECF787

#ECF787 is a very light, vivid yellow. Relative luminance 0.861; OKLCH L 94.5% C 0.137 H 113.6°. Best body text is #000000 at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#ECF787
RGBrgb(236, 247, 135)
HSLhsl(66, 88%, 75%)
HSVhsv(66, 45%, 97%)
CMYKcmyk(4.5%, 0%, 45.3%, 3.1%)
CIE-LABlab(94.36, -19.41, 52.32)
CIE-LCHlch(94.36, 55.80, 110.35°)
OKLaboklab(94.46% -0.0548 0.1253)
OKLCHoklch(94.46% 0.137 113.6)
XYZxyz(72.2270, 86.1047, 35.7320)
Luminance0.8610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF787 #9287F7
analogous
#F7CA87 #ECF787 #B4F787
triadic
#ECF787 #87ECF7 #F787EC
tetradic
#ECF787 #87F7CA #9287F7 #F787B4
square
#ECF787 #87F7CA #9287F7 #F787B4
split-complementary
#ECF787 #87B4F7 #CA87F7
monochromatic
#DAEF14 #E3F34E #ECF787 #F5FBC0 #FAFDE2

Accessibility & contrast

On white

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

On black

18.22
#ECF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF787
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF787#FFFFFF#000000##000000
##ECF7871.001.1518.2218.22
#FFFFFF1.151.0021.0021.00
#00000018.2221.001.001.00
##00000018.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE7E
Deuteranopia (green-blind)
#FFF08D
Tritanopia (blue-blind)
#F8ECDD
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf787;
/* rgb */ color: rgb(236, 247, 135);
/* oklch */ color: oklch(94.5% 0.137 113.6);
Tailwind
colors: {
  custom: {
    50: '#f4f9ac',
    500: '#ecf787',
    950: '#000000',
  },
}
SCSS
$custom: #ecf787;
$custom-light: #f4f9ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf787",
  "rgb": {
    "r": 236,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 65.893,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.94459,
    "c": 0.13675,
    "h": 113.6
  },
  "luminance": 0.86104
}

Semantic roles & 50–950 ramp

primary
#ECF787
secondary
#5B4ED4
accent
#01E418
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#171710
muted
#858581

Preview Lab

Preview with #ECF787

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

Preview Lab → · Contrast checker → · Palette generator →

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