#ECF799#ECF799

#ECF799 is a very light, moderate yellow. Relative luminance 0.867; OKLCH L 94.7% C 0.118 H 114.1°. Best body text is #000000 at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#ECF799
RGBrgb(236, 247, 153)
HSLhsl(67, 85%, 78%)
HSVhsv(67, 38%, 97%)
CMYKcmyk(4.5%, 0%, 38.1%, 3.1%)
CIE-LABlab(94.59, -17.54, 43.96)
CIE-LCHlch(94.59, 47.33, 111.75°)
OKLaboklab(94.72% -0.0481 0.1075)
OKLCHoklch(94.72% 0.118 114.1)
XYZxyz(73.6031, 86.6552, 42.9795)
Luminance0.8665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF799 #A499F7
analogous
#F7D399 #ECF799 #BDF799
triadic
#ECF799 #99ECF7 #F799EC
tetradic
#ECF799 #99F7D3 #A499F7 #F799BD
square
#ECF799 #99F7D3 #A499F7 #F799BD
split-complementary
#ECF799 #99BDF7 #D399F7
monochromatic
#D7EE27 #E1F360 #ECF799 #F7FBD2 #FAFDE3

Accessibility & contrast

On white

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

On black

18.33
#ECF799 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF799
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF799#FFFFFF#000000##000000
##ECF7991.001.1518.3318.33
#FFFFFF1.151.0021.0021.00
#00000018.3321.001.001.00
##00000018.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE92
Deuteranopia (green-blind)
#FFF19D
Tritanopia (blue-blind)
#F6EDE0
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf799;
/* rgb */ color: rgb(236, 247, 153);
/* oklch */ color: oklch(94.7% 0.118 114.1);
Tailwind
colors: {
  custom: {
    50: '#f3f9b8',
    500: '#ecf799',
    950: '#000000',
  },
}
SCSS
$custom: #ecf799;
$custom-light: #f3f9b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf799",
  "rgb": {
    "r": 236,
    "g": 247,
    "b": 153
  },
  "hsl": {
    "h": 67.021,
    "s": 85.455,
    "l": 78.431
  },
  "oklch": {
    "l": 0.94722,
    "c": 0.11778,
    "h": 114.1
  },
  "luminance": 0.86654
}

Semantic roles & 50–950 ramp

primary
#ECF799
secondary
#6C5ED6
accent
#04E21E
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF799

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

Preview Lab → · Contrast checker → · Palette generator →

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