#7D2DC2#7D2DC2

#7D2DC2 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.216 H 303.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7D2DC2
RGBrgb(125, 45, 194)
HSLhsl(272, 62%, 47%)
HSVhsv(272, 77%, 76%)
CMYKcmyk(35.6%, 76.8%, 0%, 23.9%)
CIE-LABlab(38.08, 59.93, -63.07)
CIE-LCHlch(38.08, 87.00, 313.54°)
OKLaboklab(49.33% 0.1193 -0.1798)
OKLCHoklch(49.33% 0.216 303.6)
XYZxyz(19.1312, 10.1318, 51.9762)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DC2 #72C22D
analogous
#332DC2 #7D2DC2 #C22DBD
triadic
#7D2DC2 #C27D2D #2DC27D
tetradic
#7D2DC2 #C2332D #72C22D #2DBDC2
square
#7D2DC2 #C2332D #72C22D #2DBDC2
split-complementary
#7D2DC2 #BDC22D #2DC233
monochromatic
#3D165F #5D2190 #7D2DC2 #9B55D7 #B886E3

Accessibility & contrast

On white

6.94
#7D2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7D2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2DC2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DC2#FFFFFF#000000##FFFFFF
##7D2DC21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#6F5477
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d2dc2;
/* rgb */ color: rgb(125, 45, 194);
/* oklch */ color: oklch(49.3% 0.216 303.6);
Tailwind
colors: {
  custom: {
    50: '#a96fd5',
    500: '#7d2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dc2;
$custom-light: #a96fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dc2",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 272.215,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49334,
    "c": 0.2158,
    "h": 303.6
  },
  "luminance": 0.10132
}

Semantic roles & 50–950 ramp

primary
#7D2DC2
secondary
#A3CD7E
accent
#E5428E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7D2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

#7D2DC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva