#DC7AFF#DC7AFF

#DC7AFF is a light, highly saturated purple. Relative luminance 0.364; OKLCH L 73.8% C 0.206 H 316.5°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#DC7AFF
RGBrgb(220, 122, 255)
HSLhsl(284, 100%, 74%)
HSVhsv(284, 52%, 100%)
CMYKcmyk(13.7%, 52.2%, 0%, 0%)
CIE-LABlab(66.79, 58.59, -50.84)
CIE-LCHlch(66.79, 77.57, 319.05°)
OKLaboklab(73.83% 0.1491 -0.1416)
OKLCHoklch(73.83% 0.206 316.5)
XYZxyz(54.5221, 36.3565, 98.7338)
Luminance0.3635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7AFF #9DFF7A
analogous
#9A7AFF #DC7AFF #FF7ADF
triadic
#DC7AFF #FFDC7A #7AFFDC
tetradic
#DC7AFF #FF9A7A #9DFF7A #7ADFFF
square
#DC7AFF #FF9A7A #9DFF7A #7ADFFF
split-complementary
#DC7AFF #DFFF7A #7AFF9A
monochromatic
#BC00FF #CC3DFF #DC7AFF #ECB7FF #F7E0FF

Accessibility & contrast

On white

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

On black

8.27
#DC7AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7AFF
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7AFF#FFFFFF#000000##000000
##DC7AFF1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9CFF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#DB8FB1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #dc7aff;
/* rgb */ color: rgb(220, 122, 255);
/* oklch */ color: oklch(73.8% 0.206 316.5);
Tailwind
colors: {
  custom: {
    50: '#e9a4ff',
    500: '#dc7aff',
    950: '#000000',
  },
}
SCSS
$custom: #dc7aff;
$custom-light: #e9a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7aff",
  "rgb": {
    "r": 220,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 284.211,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73826,
    "c": 0.20557,
    "h": 316.5
  },
  "luminance": 0.36355
}

Semantic roles & 50–950 ramp

primary
#DC7AFF
secondary
#DDF7D4
accent
#E6003C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #DC7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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