#ECF797#ECF797

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

Color values

HEX#ECF797
RGBrgb(236, 247, 151)
HSLhsl(67, 86%, 78%)
HSVhsv(67, 39%, 97%)
CMYKcmyk(4.5%, 0%, 38.9%, 3.1%)
CIE-LABlab(94.56, -17.76, 44.90)
CIE-LCHlch(94.56, 48.29, 111.58°)
OKLaboklab(94.69% -0.0489 0.1096)
OKLCHoklch(94.69% 0.12 114.1)
XYZxyz(73.4393, 86.5897, 42.1169)
Luminance0.8659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF797 #A297F7
analogous
#F7D297 #ECF797 #BCF797
triadic
#ECF797 #97ECF7 #F797EC
tetradic
#ECF797 #97F7D2 #A297F7 #F797BC
square
#ECF797 #97F7D2 #A297F7 #F797BC
split-complementary
#ECF797 #97BCF7 #D297F7
monochromatic
#D7EE25 #E2F35E #ECF797 #F6FBD0 #FAFDE3

Accessibility & contrast

On white

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

On black

18.32
#ECF797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF797
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF797#FFFFFF#000000##000000
##ECF7971.001.1518.3218.32
#FFFFFF1.151.0021.0021.00
#00000018.3221.001.001.00
##00000018.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecf797;
/* rgb */ color: rgb(236, 247, 151);
/* oklch */ color: oklch(94.7% 0.120 114.1);
Tailwind
colors: {
  custom: {
    50: '#f3f9b7',
    500: '#ecf797',
    950: '#000000',
  },
}
SCSS
$custom: #ecf797;
$custom-light: #f3f9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf797",
  "rgb": {
    "r": 236,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 66.875,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.94691,
    "c": 0.11997,
    "h": 114.1
  },
  "luminance": 0.86589
}

Semantic roles & 50–950 ramp

primary
#ECF797
secondary
#6A5CD6
accent
#03E21D
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF797

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

Preview Lab → · Contrast checker → · Palette generator →

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