#DF7EF2#DF7EF2

#DF7EF2 is a light, vivid purple. Relative luminance 0.370; OKLCH L 74.1% C 0.188 H 320.9°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#DF7EF2
RGBrgb(223, 126, 242)
HSLhsl(290, 82%, 72%)
HSVhsv(290, 48%, 95%)
CMYKcmyk(7.9%, 47.9%, 0%, 5.1%)
CIE-LABlab(67.29, 54.88, -42.89)
CIE-LCHlch(67.29, 69.65, 321.99°)
OKLaboklab(74.08% 0.1457 -0.1185)
OKLCHoklch(74.08% 0.188 320.9)
XYZxyz(53.9174, 37.0227, 88.2932)
Luminance0.3702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF7EF2 #91F27E
analogous
#A57EF2 #DF7EF2 #F27ECB
triadic
#DF7EF2 #F2DF7E #7EF2DF
tetradic
#DF7EF2 #F2A57E #91F27E #7ECBF2
square
#DF7EF2 #F2A57E #91F27E #7ECBF2
split-complementary
#DF7EF2 #CBF27E #7EF2A5
monochromatic
#BE16DF #D146EC #DF7EF2 #EDB6F8 #F8E3FC

Accessibility & contrast

On white

2.50
#DF7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#DF7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DF7EF2
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF7EF2#FFFFFF#000000##000000
##DF7EF21.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#89A8EF
Tritanopia (blue-blind)
#E18DAD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #df7ef2;
/* rgb */ color: rgb(223, 126, 242);
/* oklch */ color: oklch(74.1% 0.188 320.9);
Tailwind
colors: {
  custom: {
    50: '#eba6f7',
    500: '#df7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #df7ef2;
$custom-light: #eba6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#df7ef2",
  "rgb": {
    "r": 223,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 290.172,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.74076,
    "c": 0.18782,
    "h": 320.9
  },
  "luminance": 0.3702
}

Semantic roles & 50–950 ramp

primary
#DF7EF2
secondary
#DCF4D7
accent
#DE072B
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #DF7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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