#ECF87C#ECF87C

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

Color values

HEX#ECF87C
RGBrgb(236, 248, 124)
HSLhsl(66, 90%, 73%)
HSVhsv(66, 50%, 97%)
CMYKcmyk(4.8%, 0%, 50%, 2.7%)
CIE-LABlab(94.49, -20.90, 57.58)
CIE-LCHlch(94.49, 61.26, 109.94°)
OKLaboklab(94.53% -0.06 0.136)
OKLCHoklch(94.53% 0.149 113.8)
XYZxyz(71.7988, 86.4240, 31.9641)
Luminance0.8642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF87C #887CF8
analogous
#F8C67C #ECF87C #AEF87C
triadic
#ECF87C #7CECF8 #F87CEC
tetradic
#ECF87C #7CF8C6 #887CF8 #F87CAE
square
#ECF87C #7CF8C6 #887CF8 #F87CAE
split-complementary
#ECF87C #7CAEF8 #C67CF8
monochromatic
#D7ED0D #E4F542 #ECF87C #F4FBB6 #FBFDE2

Accessibility & contrast

On white

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

On black

18.28
#ECF87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF87C
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF87C#FFFFFF#000000##000000
##ECF87C1.001.1518.2818.28
#FFFFFF1.151.0021.0021.00
#00000018.2821.001.001.00
##00000018.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE71
Deuteranopia (green-blind)
#FFF183
Tritanopia (blue-blind)
#F9ECDC
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf87c;
/* rgb */ color: rgb(236, 248, 124);
/* oklch */ color: oklch(94.5% 0.149 113.8);
Tailwind
colors: {
  custom: {
    50: '#f4faa5',
    500: '#ecf87c',
    950: '#000000',
  },
}
SCSS
$custom: #ecf87c;
$custom-light: #f4faa5;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf87c",
  "rgb": {
    "r": 236,
    "g": 248,
    "b": 124
  },
  "hsl": {
    "h": 65.806,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.94527,
    "c": 0.14867,
    "h": 113.8
  },
  "luminance": 0.86423
}

Semantic roles & 50–950 ramp

primary
#ECF87C
secondary
#5244D4
accent
#00E616
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF87C

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

Preview Lab → · Contrast checker → · Palette generator →

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