#EAF271#EAF271

#EAF271 is a very light, vivid yellow. Relative luminance 0.822; OKLCH L 93.0% C 0.152 H 112.2°. Best body text is #000000 at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#EAF271
RGBrgb(234, 242, 113)
HSLhsl(64, 83%, 70%)
HSVhsv(64, 53%, 95%)
CMYKcmyk(3.3%, 0%, 53.3%, 5.1%)
CIE-LABlab(92.66, -19.71, 60.36)
CIE-LCHlch(92.66, 63.50, 108.08°)
OKLaboklab(92.99% -0.0576 0.141)
OKLCHoklch(92.99% 0.152 112.2)
XYZxyz(68.6659, 82.1903, 27.8667)
Luminance0.8219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EAF271 #7971F2
analogous
#F2BA71 #EAF271 #AAF271
triadic
#EAF271 #71EAF2 #F271EA
tetradic
#EAF271 #71F2BA #7971F2 #F271AA
square
#EAF271 #71F2BA #7971F2 #F271AA
split-complementary
#EAF271 #71AAF2 #BA71F2
monochromatic
#C9D514 #E2ED39 #EAF271 #F2F7A9 #FBFCE1

Accessibility & contrast

On white

1.20
#EAF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.44
#EAF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EAF271
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EAF271#FFFFFF#000000##000000
##EAF2711.001.2017.4417.44
#FFFFFF1.201.0021.0021.00
#00000017.4421.001.001.00
##00000017.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#FFEC78
Tritanopia (blue-blind)
#F8E5D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #eaf271;
/* rgb */ color: rgb(234, 242, 113);
/* oklch */ color: oklch(93.0% 0.152 112.2);
Tailwind
colors: {
  custom: {
    50: '#f3f69d',
    500: '#eaf271',
    950: '#000000',
  },
}
SCSS
$custom: #eaf271;
$custom-light: #f3f69d;
$custom-dark: #000000;
JSON
{
  "hex": "#eaf271",
  "rgb": {
    "r": 234,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 63.721,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.92988,
    "c": 0.15234,
    "h": 112.2
  },
  "luminance": 0.82189
}

Semantic roles & 50–950 ramp

primary
#EAF271
secondary
#453CCB
accent
#06E013
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170F
muted
#858580

Preview Lab

Preview with #EAF271

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

Preview Lab → · Contrast checker → · Palette generator →

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