#EAF787#EAF787

#EAF787 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.3% C 0.137 H 114.5°. Best body text is #000000 at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#EAF787
RGBrgb(234, 247, 135)
HSLhsl(67, 88%, 75%)
HSVhsv(67, 45%, 97%)
CMYKcmyk(5.3%, 0%, 45.3%, 3.1%)
CIE-LABlab(94.21, -20.17, 52.11)
CIE-LCHlch(94.21, 55.88, 111.16°)
OKLaboklab(94.31% -0.0569 0.1248)
OKLCHoklch(94.31% 0.137 114.5)
XYZxyz(71.5665, 85.7642, 35.7010)
Luminance0.8576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EAF787 #9487F7
analogous
#F7CC87 #EAF787 #B2F787
triadic
#EAF787 #87EAF7 #F787EA
tetradic
#EAF787 #87F7CC #9487F7 #F787B2
square
#EAF787 #87F7CC #9487F7 #F787B2
split-complementary
#EAF787 #87B2F7 #CC87F7
monochromatic
#D6EF14 #E0F34E #EAF787 #F4FBC0 #FAFDE2

Accessibility & contrast

On white

1.16
#EAF787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.15
#EAF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EAF787
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EAF787#FFFFFF#000000##000000
##EAF7871.001.1618.1518.15
#FFFFFF1.161.0021.0021.00
#00000018.1521.001.001.00
##00000018.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED7E
Deuteranopia (green-blind)
#FFF08D
Tritanopia (blue-blind)
#F6ECDD
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #eaf787;
/* rgb */ color: rgb(234, 247, 135);
/* oklch */ color: oklch(94.3% 0.137 114.5);
Tailwind
colors: {
  custom: {
    50: '#f2f9ac',
    500: '#eaf787',
    950: '#000000',
  },
}
SCSS
$custom: #eaf787;
$custom-light: #f2f9ac;
$custom-dark: #000000;
JSON
{
  "hex": "#eaf787",
  "rgb": {
    "r": 234,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 66.964,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.94306,
    "c": 0.1372,
    "h": 114.5
  },
  "luminance": 0.85763
}

Semantic roles & 50–950 ramp

primary
#EAF787
secondary
#5D4ED4
accent
#01E41C
background
#FFFFFD
surface
#FEFFF7
border
#D6D7D0
text
#171710
muted
#858581

Preview Lab

Preview with #EAF787

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

Preview Lab → · Contrast checker → · Palette generator →

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