#DC7FEB#DC7FEB

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

Color values

HEX#DC7FEB
RGBrgb(220, 127, 235)
HSLhsl(292, 73%, 71%)
HSVhsv(292, 46%, 92%)
CMYKcmyk(6.4%, 46%, 0%, 7.8%)
CIE-LABlab(66.82, 52.21, -39.80)
CIE-LCHlch(66.82, 65.65, 322.68°)
OKLaboklab(73.55% 0.1399 -0.1097)
OKLCHoklch(73.55% 0.178 321.9)
XYZxyz(52.0983, 36.3947, 82.8617)
Luminance0.3639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7FEB #8EEB7F
analogous
#A67FEB #DC7FEB #EB7FC4
triadic
#DC7FEB #EBDC7F #7FEBDC
tetradic
#DC7FEB #EBA67F #8EEB7F #7FC4EB
square
#DC7FEB #EBA67F #8EEB7F #7FC4EB
split-complementary
#DC7FEB #C4EB7F #7FEBA6
monochromatic
#B720CF #CE4AE3 #DC7FEB #EAB4F3 #F8E5FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DC7FEB#FFFFFF#000000##000000
##DC7FEB1.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)
#709CEF
Deuteranopia (green-blind)
#8AA6E8
Tritanopia (blue-blind)
#DE8CAA
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #dc7feb;
/* rgb */ color: rgb(220, 127, 235);
/* oklch */ color: oklch(73.5% 0.178 321.9);
Tailwind
colors: {
  custom: {
    50: '#e9a7f2',
    500: '#dc7feb',
    950: '#000000',
  },
}
SCSS
$custom: #dc7feb;
$custom-light: #e9a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7feb",
  "rgb": {
    "r": 220,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 291.667,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.73545,
    "c": 0.17775,
    "h": 321.9
  },
  "luminance": 0.36393
}

Semantic roles & 50–950 ramp

primary
#DC7FEB
secondary
#D9F1D5
accent
#D5102C
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #DC7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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