#DEF270#DEF270

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

Color values

HEX#DEF270
RGBrgb(222, 242, 112)
HSLhsl(69, 83%, 69%)
HSVhsv(69, 54%, 95%)
CMYKcmyk(8.3%, 0%, 53.7%, 5.1%)
CIE-LABlab(91.78, -24.49, 59.56)
CIE-LCHlch(91.78, 64.40, 112.35°)
OKLaboklab(92.06% -0.0706 0.1394)
OKLCHoklch(92.06% 0.156 116.9)
XYZxyz(64.8019, 80.2044, 27.3933)
Luminance0.8020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF270 #8470F2
analogous
#F2C570 #DEF270 #9DF270
triadic
#DEF270 #70DEF2 #F270DE
tetradic
#DEF270 #70F2C5 #8470F2 #F2709D
square
#DEF270 #70F2C5 #8470F2 #F2709D
split-complementary
#DEF270 #709DF2 #C570F2
monochromatic
#B7D413 #D1ED38 #DEF270 #EBF7A8 #F8FCE0

Accessibility & contrast

On white

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

On black

17.04
#DEF270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF270
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF270#FFFFFF#000000##000000
##DEF2701.001.2317.0417.04
#FFFFFF1.231.0021.0021.00
#00000017.0421.001.001.00
##00000017.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #def270;
/* rgb */ color: rgb(222, 242, 112);
/* oklch */ color: oklch(92.1% 0.156 116.9);
Tailwind
colors: {
  custom: {
    50: '#ebf69d',
    500: '#def270',
    950: '#000000',
  },
}
SCSS
$custom: #def270;
$custom-light: #ebf69d;
$custom-dark: #000000;
JSON
{
  "hex": "#def270",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 112
  },
  "hsl": {
    "h": 69.231,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.92063,
    "c": 0.15622,
    "h": 116.9
  },
  "luminance": 0.80204
}

Semantic roles & 50–950 ramp

primary
#DEF270
secondary
#513BCB
accent
#06E027
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#16170E
muted
#85857F

Preview Lab

Preview with #DEF270

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

Preview Lab → · Contrast checker → · Palette generator →

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