#DEF266#DEF266

#DEF266 is a very light, vivid yellow. Relative luminance 0.800; OKLCH L 92.0% C 0.165 H 116.6°. Best body text is #000000 at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#DEF266
RGBrgb(222, 242, 102)
HSLhsl(69, 84%, 67%)
HSVhsv(69, 58%, 95%)
CMYKcmyk(8.3%, 0%, 57.9%, 5.1%)
CIE-LABlab(91.68, -25.27, 63.81)
CIE-LCHlch(91.68, 68.63, 111.61°)
OKLaboklab(91.96% -0.0737 0.1474)
OKLCHoklch(91.96% 0.165 116.6)
XYZxyz(64.2758, 79.9939, 24.6221)
Luminance0.7999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF266 #7A66F2
analogous
#F2C066 #DEF266 #98F266
triadic
#DEF266 #66DEF2 #F266DE
tetradic
#DEF266 #66F2C0 #7A66F2 #F26698
square
#DEF266 #66F2C0 #7A66F2 #F26698
split-complementary
#DEF266 #6698F2 #C066F2
monochromatic
#B2CC11 #D2ED2E #DEF266 #EAF79E #F6FCD7

Accessibility & contrast

On white

1.24
#DEF266 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.00
#DEF266 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF266
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF266#FFFFFF#000000##000000
##DEF2661.001.2417.0017.00
#FFFFFF1.241.0021.0021.00
#00000017.0021.001.001.00
##00000017.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE657
Deuteranopia (green-blind)
#FFE86F
Tritanopia (blue-blind)
#EAE6D4
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def266;
/* rgb */ color: rgb(222, 242, 102);
/* oklch */ color: oklch(92.0% 0.165 116.6);
Tailwind
colors: {
  custom: {
    50: '#ebf696',
    500: '#def266',
    950: '#000000',
  },
}
SCSS
$custom: #def266;
$custom-light: #ebf696;
$custom-dark: #000000;
JSON
{
  "hex": "#def266",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 102
  },
  "hsl": {
    "h": 68.571,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.91957,
    "c": 0.16483,
    "h": 116.6
  },
  "luminance": 0.79993
}

Semantic roles & 50–950 ramp

primary
#DEF266
secondary
#4934C9
accent
#05E124
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#17170E
muted
#85857F

Preview Lab

Preview with #DEF266

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

Preview Lab → · Contrast checker → · Palette generator →

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