#EAF797#EAF797

#EAF797 is a very light, vivid yellow. Relative luminance 0.862; OKLCH L 94.5% C 0.120 H 115.0°. Best body text is #000000 at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#EAF797
RGBrgb(234, 247, 151)
HSLhsl(68, 86%, 78%)
HSVhsv(68, 39%, 97%)
CMYKcmyk(5.3%, 0%, 38.9%, 3.1%)
CIE-LABlab(94.42, -18.51, 44.69)
CIE-LCHlch(94.42, 48.37, 112.50°)
OKLaboklab(94.54% -0.051 0.1091)
OKLCHoklch(94.54% 0.12 115)
XYZxyz(72.7788, 86.2491, 42.0859)
Luminance0.8625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EAF797 #A497F7
analogous
#F7D497 #EAF797 #BAF797
triadic
#EAF797 #97EAF7 #F797EA
tetradic
#EAF797 #97F7D4 #A497F7 #F797BA
square
#EAF797 #97F7D4 #A497F7 #F797BA
split-complementary
#EAF797 #97BAF7 #D497F7
monochromatic
#D3EE25 #DFF35E #EAF797 #F5FBD0 #F9FDE3

Accessibility & contrast

On white

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

On black

18.25
#EAF797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EAF797
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EAF797#FFFFFF#000000##000000
##EAF7971.001.1518.2518.25
#FFFFFF1.151.0021.0021.00
#00000018.2521.001.001.00
##00000018.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #eaf797;
/* rgb */ color: rgb(234, 247, 151);
/* oklch */ color: oklch(94.5% 0.120 115.0);
Tailwind
colors: {
  custom: {
    50: '#f2f9b7',
    500: '#eaf797',
    950: '#000000',
  },
}
SCSS
$custom: #eaf797;
$custom-light: #f2f9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#eaf797",
  "rgb": {
    "r": 234,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 68.125,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.94539,
    "c": 0.12039,
    "h": 115
  },
  "luminance": 0.86248
}

Semantic roles & 50–950 ramp

primary
#EAF797
secondary
#6D5CD6
accent
#03E221
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #EAF797

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

Preview Lab → · Contrast checker → · Palette generator →

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