#DB7EF2#DB7EF2

#DB7EF2 is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.6% C 0.186 H 319.4°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#DB7EF2
RGBrgb(219, 126, 242)
HSLhsl(288, 82%, 72%)
HSVhsv(288, 48%, 95%)
CMYKcmyk(9.5%, 47.9%, 0%, 5.1%)
CIE-LABlab(66.82, 53.78, -43.67)
CIE-LCHlch(66.82, 69.28, 320.92°)
OKLaboklab(73.62% 0.1411 -0.1208)
OKLCHoklch(73.62% 0.186 319.4)
XYZxyz(52.6992, 36.3945, 88.2360)
Luminance0.3639 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB7EF2 #95F27E
analogous
#A17EF2 #DB7EF2 #F27ECF
triadic
#DB7EF2 #F2DB7E #7EF2DB
tetradic
#DB7EF2 #F2A17E #95F27E #7ECFF2
square
#DB7EF2 #F2A17E #95F27E #7ECFF2
split-complementary
#DB7EF2 #CFF27E #7EF2A1
monochromatic
#B716DF #CB46EC #DB7EF2 #EBB6F8 #F7E3FC

Accessibility & contrast

On white

2.54
#DB7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#DB7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB7EF2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB7EF2#FFFFFF#000000##000000
##DB7EF21.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9CF6
Deuteranopia (green-blind)
#86A6EF
Tritanopia (blue-blind)
#DC8EAD
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #db7ef2;
/* rgb */ color: rgb(219, 126, 242);
/* oklch */ color: oklch(73.6% 0.186 319.4);
Tailwind
colors: {
  custom: {
    50: '#e8a6f7',
    500: '#db7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #db7ef2;
$custom-light: #e8a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#db7ef2",
  "rgb": {
    "r": 219,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 288.103,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73622,
    "c": 0.18579,
    "h": 319.4
  },
  "luminance": 0.36393
}

Semantic roles & 50–950 ramp

primary
#DB7EF2
secondary
#DDF4D7
accent
#DE0732
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #DB7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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