#DC7AF2#DC7AF2

#DC7AF2 is a light, vivid purple. Relative luminance 0.355; OKLCH L 73.2% C 0.193 H 320.0°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#DC7AF2
RGBrgb(220, 122, 242)
HSLhsl(289, 82%, 71%)
HSVhsv(289, 50%, 95%)
CMYKcmyk(9.1%, 49.6%, 0%, 5.1%)
CIE-LABlab(66.17, 56.05, -44.68)
CIE-LCHlch(66.17, 71.68, 321.44°)
OKLaboklab(73.17% 0.1477 -0.1237)
OKLCHoklch(73.17% 0.193 320)
XYZxyz(52.4998, 35.5476, 88.0831)
Luminance0.3555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7AF2 #90F27A
analogous
#A07AF2 #DC7AF2 #F27ACC
triadic
#DC7AF2 #F2DC7A #7AF2DC
tetradic
#DC7AF2 #F2A07A #90F27A #7ACCF2
square
#DC7AF2 #F2A07A #90F27A #7ACCF2
split-complementary
#DC7AF2 #CCF27A #7AF2A0
monochromatic
#B816DC #CD42ED #DC7AF2 #EBB2F7 #F8E3FC

Accessibility & contrast

On white

2.59
#DC7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#DC7AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7AF2
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7AF2#FFFFFF#000000##000000
##DC7AF21.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#83A4EF
Tritanopia (blue-blind)
#DD8AAB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #dc7af2;
/* rgb */ color: rgb(220, 122, 242);
/* oklch */ color: oklch(73.2% 0.193 320.0);
Tailwind
colors: {
  custom: {
    50: '#e9a4f7',
    500: '#dc7af2',
    950: '#000000',
  },
}
SCSS
$custom: #dc7af2;
$custom-light: #e9a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7af2",
  "rgb": {
    "r": 220,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 289,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.73168,
    "c": 0.19263,
    "h": 320
  },
  "luminance": 0.35546
}

Semantic roles & 50–950 ramp

primary
#DC7AF2
secondary
#DAF3D4
accent
#DF072E
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #DC7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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