#EAF871#EAF871

#EAF871 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.2% C 0.159 H 114.4°. Best body text is #000000 at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#EAF871
RGBrgb(234, 248, 113)
HSLhsl(66, 91%, 71%)
HSVhsv(66, 54%, 97%)
CMYKcmyk(5.6%, 0%, 54.4%, 2.7%)
CIE-LABlab(94.24, -22.59, 62.17)
CIE-LCHlch(94.24, 66.14, 109.97°)
OKLaboklab(94.25% -0.0658 0.1449)
OKLCHoklch(94.25% 0.159 114.4)
XYZxyz(70.4811, 85.8206, 28.4717)
Luminance0.8582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EAF871 #7F71F8
analogous
#F8C271 #EAF871 #A6F871
triadic
#EAF871 #71EAF8 #F871EA
tetradic
#EAF871 #71F8C2 #7F71F8 #F871A6
square
#EAF871 #71F8C2 #7F71F8 #F871A6
split-complementary
#EAF871 #71A6F8 #C271F8
monochromatic
#CDE30B #E1F537 #EAF871 #F3FBAB #FBFEE2

Accessibility & contrast

On white

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

On black

18.16
#EAF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EAF871
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EAF871#FFFFFF#000000##000000
##EAF8711.001.1618.1618.16
#FFFFFF1.161.0021.0021.00
#00000018.1621.001.001.00
##00000018.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED63
Deuteranopia (green-blind)
#FFF079
Tritanopia (blue-blind)
#F7EBDA
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #eaf871;
/* rgb */ color: rgb(234, 248, 113);
/* oklch */ color: oklch(94.2% 0.159 114.4);
Tailwind
colors: {
  custom: {
    50: '#f3fa9e',
    500: '#eaf871',
    950: '#000000',
  },
}
SCSS
$custom: #eaf871;
$custom-light: #f3fa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#eaf871",
  "rgb": {
    "r": 234,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 66.222,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94248,
    "c": 0.15912,
    "h": 114.4
  },
  "luminance": 0.85819
}

Semantic roles & 50–950 ramp

primary
#EAF871
secondary
#4A3AD3
accent
#00E618
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #EAF871

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

Preview Lab → · Contrast checker → · Palette generator →

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