#DEF262#DEF262

#DEF262 is a very light, vivid yellow. Relative luminance 0.799; OKLCH L 91.9% C 0.168 H 116.5°. Best body text is #000000 at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#DEF262
RGBrgb(222, 242, 98)
HSLhsl(68, 85%, 67%)
HSVhsv(68, 60%, 95%)
CMYKcmyk(8.3%, 0%, 59.5%, 5.1%)
CIE-LABlab(91.65, -25.56, 65.46)
CIE-LCHlch(91.65, 70.27, 111.33°)
OKLaboklab(91.92% -0.0749 0.1504)
OKLCHoklch(91.92% 0.168 116.5)
XYZxyz(64.0822, 79.9165, 23.6025)
Luminance0.7992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF262 #7662F2
analogous
#F2BE62 #DEF262 #96F262
triadic
#DEF262 #62DEF2 #F262DE
tetradic
#DEF262 #62F2BE #7662F2 #F26296
square
#DEF262 #62F2BE #7662F2 #F26296
split-complementary
#DEF262 #6296F2 #BE62F2
monochromatic
#AFC911 #D2ED29 #DEF262 #EAF79B #F6FBD3

Accessibility & contrast

On white

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

On black

16.98
#DEF262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF262
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF262#FFFFFF#000000##000000
##DEF2621.001.2416.9816.98
#FFFFFF1.241.0021.0021.00
#00000016.9821.001.001.00
##00000016.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE651
Deuteranopia (green-blind)
#FFE86B
Tritanopia (blue-blind)
#EBE5D3
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def262;
/* rgb */ color: rgb(222, 242, 98);
/* oklch */ color: oklch(91.9% 0.168 116.5);
Tailwind
colors: {
  custom: {
    50: '#ebf694',
    500: '#def262',
    950: '#000000',
  },
}
SCSS
$custom: #def262;
$custom-light: #ebf694;
$custom-dark: #000000;
JSON
{
  "hex": "#def262",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 98
  },
  "hsl": {
    "h": 68.333,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.91918,
    "c": 0.16806,
    "h": 116.5
  },
  "luminance": 0.79916
}

Semantic roles & 50–950 ramp

primary
#DEF262
secondary
#4733C6
accent
#04E123
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#17170E
muted
#85857F

Preview Lab

Preview with #DEF262

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

Preview Lab → · Contrast checker → · Palette generator →

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