#DEF271#DEF271

#DEF271 is a very light, vivid yellow. Relative luminance 0.802; OKLCH L 92.1% C 0.155 H 116.9°. Best body text is #000000 at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#DEF271
RGBrgb(222, 242, 113)
HSLhsl(69, 83%, 70%)
HSVhsv(69, 53%, 95%)
CMYKcmyk(8.3%, 0%, 53.3%, 5.1%)
CIE-LABlab(91.79, -24.40, 59.13)
CIE-LCHlch(91.79, 63.97, 112.43°)
OKLaboklab(92.07% -0.0702 0.1385)
OKLCHoklch(92.07% 0.155 116.9)
XYZxyz(64.8579, 80.2268, 27.6882)
Luminance0.8023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF271 #8571F2
analogous
#F2C571 #DEF271 #9EF271
triadic
#DEF271 #71DEF2 #F271DE
tetradic
#DEF271 #71F2C5 #8571F2 #F2719E
square
#DEF271 #71F2C5 #8571F2 #F2719E
split-complementary
#DEF271 #719EF2 #C571F2
monochromatic
#B7D514 #D1ED39 #DEF271 #EBF7A9 #F8FCE1

Accessibility & contrast

On white

1.23
#DEF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.05
#DEF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF271
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF271#FFFFFF#000000##000000
##DEF2711.001.2317.0517.05
#FFFFFF1.231.0021.0021.00
#00000017.0521.001.001.00
##00000017.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE764
Deuteranopia (green-blind)
#FEE878
Tritanopia (blue-blind)
#EAE6D5
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def271;
/* rgb */ color: rgb(222, 242, 113);
/* oklch */ color: oklch(92.1% 0.155 116.9);
Tailwind
colors: {
  custom: {
    50: '#eaf69d',
    500: '#def271',
    950: '#000000',
  },
}
SCSS
$custom: #def271;
$custom-light: #eaf69d;
$custom-dark: #000000;
JSON
{
  "hex": "#def271",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 69.302,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.92074,
    "c": 0.15532,
    "h": 116.9
  },
  "luminance": 0.80226
}

Semantic roles & 50–950 ramp

primary
#DEF271
secondary
#523CCB
accent
#06E028
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF271

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

Preview Lab → · Contrast checker → · Palette generator →

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