#ECF2AB#ECF2AB

#ECF2AB is a very light, moderate yellow. Relative luminance 0.843; OKLCH L 94.0% C 0.091 H 112.1°. Best body text is #000000 at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#ECF2AB
RGBrgb(236, 242, 171)
HSLhsl(65, 73%, 81%)
HSVhsv(65, 29%, 95%)
CMYKcmyk(2.5%, 0%, 29.3%, 5.1%)
CIE-LABlab(93.57, -12.95, 33.69)
CIE-LCHlch(93.57, 36.09, 111.02°)
OKLaboklab(94% -0.0341 0.0842)
OKLCHoklch(94% 0.091 112.1)
XYZxyz(73.6950, 84.2783, 50.9053)
Luminance0.8428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF2AB #B1ABF2
analogous
#F2D4AB #ECF2AB #C8F2AB
triadic
#ECF2AB #ABECF2 #F2ABEC
tetradic
#ECF2AB #ABF2D4 #B1ABF2 #F2ABC8
square
#ECF2AB #ABF2D4 #B1ABF2 #F2ABC8
split-complementary
#ECF2AB #ABC8F2 #D4ABF2
monochromatic
#D4E241 #E0EA76 #ECF2AB #F8FAE0 #F9FBE5

Accessibility & contrast

On white

1.18
#ECF2AB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.86
#ECF2AB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF2AB
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF2AB#FFFFFF#000000##000000
##ECF2AB1.001.1817.8617.86
#FFFFFF1.181.0021.0021.00
#00000017.8621.001.001.00
##00000017.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDEBA6
Deuteranopia (green-blind)
#FDEEAE
Tritanopia (blue-blind)
#F5EADF
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #ecf2ab;
/* rgb */ color: rgb(236, 242, 171);
/* oklch */ color: oklch(94.0% 0.091 112.1);
Tailwind
colors: {
  custom: {
    50: '#f3f6c4',
    500: '#ecf2ab',
    950: '#000000',
  },
}
SCSS
$custom: #ecf2ab;
$custom-light: #f3f6c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf2ab",
  "rgb": {
    "r": 236,
    "g": 242,
    "b": 171
  },
  "hsl": {
    "h": 65.07,
    "s": 73.196,
    "l": 80.98
  },
  "oklch": {
    "l": 0.94,
    "c": 0.09084,
    "h": 112.1
  },
  "luminance": 0.84277
}

Semantic roles & 50–950 ramp

primary
#ECF2AB
secondary
#7870D1
accent
#10D521
background
#FFFFFD
surface
#FEFEF9
border
#D6D6D2
text
#171713
muted
#858582

Preview Lab

Preview with #ECF2AB

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

Preview Lab → · Contrast checker → · Palette generator →

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