#ECF796#ECF796

#ECF796 is a very light, vivid yellow. Relative luminance 0.866; OKLCH L 94.7% C 0.121 H 114.0°. Best body text is #000000 at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#ECF796
RGBrgb(236, 247, 150)
HSLhsl(67, 86%, 78%)
HSVhsv(67, 39%, 97%)
CMYKcmyk(4.5%, 0%, 39.3%, 3.1%)
CIE-LABlab(94.55, -17.87, 45.37)
CIE-LCHlch(94.55, 48.76, 111.49°)
OKLaboklab(94.68% -0.0493 0.1106)
OKLCHoklch(94.68% 0.121 114)
XYZxyz(73.3585, 86.5573, 41.6910)
Luminance0.8656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF796 #A196F7
analogous
#F7D196 #ECF796 #BBF796
triadic
#ECF796 #96ECF7 #F796EC
tetradic
#ECF796 #96F7D1 #A196F7 #F796BB
square
#ECF796 #96F7D1 #A196F7 #F796BB
split-complementary
#ECF796 #96BBF7 #D196F7
monochromatic
#D7EE24 #E2F35D #ECF796 #F6FBCF #FAFDE3

Accessibility & contrast

On white

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

On black

18.31
#ECF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF796
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF796#FFFFFF#000000##000000
##ECF7961.001.1518.3118.31
#FFFFFF1.151.0021.0021.00
#00000018.3121.001.001.00
##00000018.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE8F
Deuteranopia (green-blind)
#FFF09B
Tritanopia (blue-blind)
#F7EDDF
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf796;
/* rgb */ color: rgb(236, 247, 150);
/* oklch */ color: oklch(94.7% 0.121 114.0);
Tailwind
colors: {
  custom: {
    50: '#f3f9b6',
    500: '#ecf796',
    950: '#000000',
  },
}
SCSS
$custom: #ecf796;
$custom-light: #f3f9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf796",
  "rgb": {
    "r": 236,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 66.804,
    "s": 85.841,
    "l": 77.843
  },
  "oklch": {
    "l": 0.94675,
    "c": 0.12105,
    "h": 114
  },
  "luminance": 0.86556
}

Semantic roles & 50–950 ramp

primary
#ECF796
secondary
#695BD6
accent
#03E21C
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF796

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

Preview Lab → · Contrast checker → · Palette generator →

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