#DEF277#DEF277

#DEF277 is a very light, vivid yellow. Relative luminance 0.804; OKLCH L 92.1% C 0.150 H 117.1°. Best body text is #000000 at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#DEF277
RGBrgb(222, 242, 119)
HSLhsl(70, 83%, 71%)
HSVhsv(70, 51%, 95%)
CMYKcmyk(8.3%, 0%, 50.8%, 5.1%)
CIE-LABlab(91.85, -23.88, 56.49)
CIE-LCHlch(91.85, 61.33, 112.92°)
OKLaboklab(92.14% -0.0682 0.1334)
OKLCHoklch(92.14% 0.15 117.1)
XYZxyz(65.2069, 80.3664, 29.5263)
Luminance0.8037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF277 #8B77F2
analogous
#F2C877 #DEF277 #A0F277
triadic
#DEF277 #77DEF2 #F277DE
tetradic
#DEF277 #77F2C8 #8B77F2 #F277A0
square
#DEF277 #77F2C8 #8B77F2 #F277A0
split-complementary
#DEF277 #77A0F2 #C877F2
monochromatic
#BADA15 #D0ED3F #DEF277 #ECF7AF #F8FCE3

Accessibility & contrast

On white

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

On black

17.07
#DEF277 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF277
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF277#FFFFFF#000000##000000
##DEF2771.001.2317.0717.07
#FFFFFF1.231.0021.0021.00
#00000017.0721.001.001.00
##00000017.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE76C
Deuteranopia (green-blind)
#FEE87E
Tritanopia (blue-blind)
#E9E7D6
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #def277;
/* rgb */ color: rgb(222, 242, 119);
/* oklch */ color: oklch(92.1% 0.150 117.1);
Tailwind
colors: {
  custom: {
    50: '#eaf6a1',
    500: '#def277',
    950: '#000000',
  },
}
SCSS
$custom: #def277;
$custom-light: #eaf6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#def277",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 119
  },
  "hsl": {
    "h": 69.756,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.92144,
    "c": 0.14981,
    "h": 117.1
  },
  "luminance": 0.80366
}

Semantic roles & 50–950 ramp

primary
#DEF277
secondary
#5841CC
accent
#07DF2A
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF277

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

Preview Lab → · Contrast checker → · Palette generator →

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