#DB7FF2#DB7FF2

#DB7FF2 is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.8% C 0.184 H 319.4°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#DB7FF2
RGBrgb(219, 127, 242)
HSLhsl(288, 82%, 72%)
HSVhsv(288, 48%, 95%)
CMYKcmyk(9.5%, 47.5%, 0%, 5.1%)
CIE-LABlab(67.01, 53.27, -43.36)
CIE-LCHlch(67.01, 68.69, 320.86°)
OKLaboklab(73.77% 0.1398 -0.12)
OKLCHoklch(73.77% 0.184 319.4)
XYZxyz(52.8277, 36.6515, 88.2789)
Luminance0.3665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB7FF2 #96F27F
analogous
#A27FF2 #DB7FF2 #F27FD0
triadic
#DB7FF2 #F2DB7F #7FF2DB
tetradic
#DB7FF2 #F2A27F #96F27F #7FD0F2
square
#DB7FF2 #F2A27F #96F27F #7FD0F2
split-complementary
#DB7FF2 #D0F27F #7FF2A2
monochromatic
#B817E0 #CB47EC #DB7FF2 #EBB7F8 #F7E3FC

Accessibility & contrast

On white

2.52
#DB7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#DB7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB7FF2
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB7FF2#FFFFFF#000000##000000
##DB7FF21.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#87A6EF
Tritanopia (blue-blind)
#DC8FAD
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #db7ff2;
/* rgb */ color: rgb(219, 127, 242);
/* oklch */ color: oklch(73.8% 0.184 319.4);
Tailwind
colors: {
  custom: {
    50: '#e8a7f7',
    500: '#db7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #db7ff2;
$custom-light: #e8a7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#db7ff2",
  "rgb": {
    "r": 219,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 288,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73767,
    "c": 0.18419,
    "h": 319.4
  },
  "luminance": 0.3665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DB7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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