#7D2DCC#7D2DCC

#7D2DCC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.226 H 301.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7D2DCC
RGBrgb(125, 45, 204)
HSLhsl(270, 64%, 49%)
HSVhsv(270, 78%, 80%)
CMYKcmyk(38.7%, 77.9%, 0%, 20%)
CIE-LABlab(38.89, 62.23, -67.57)
CIE-LCHlch(38.89, 91.86, 312.65°)
OKLaboklab(50.16% 0.1167 -0.193)
OKLCHoklch(50.16% 0.226 301.2)
XYZxyz(20.2922, 10.5962, 58.0912)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DCC #7CCC2D
analogous
#2E2DCC #7D2DCC #CC2DCC
triadic
#7D2DCC #CC7D2D #2DCC7D
tetradic
#7D2DCC #CC2E2D #7CCC2D #2DCCCC
square
#7D2DCC #CC2E2D #7CCC2D #2DCCCC
split-complementary
#7D2DCC #CCCC2D #2DCC2E
monochromatic
#401768 #5E229A #7D2DCC #9C5BDB #BA8DE6

Accessibility & contrast

On white

6.73
#7D2DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7D2DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2DCC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DCC#FFFFFF#000000##FFFFFF
##7D2DCC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#6B587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d2dcc;
/* rgb */ color: rgb(125, 45, 204);
/* oklch */ color: oklch(50.2% 0.226 301.2);
Tailwind
colors: {
  custom: {
    50: '#aa6fdd',
    500: '#7d2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dcc;
$custom-light: #aa6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dcc",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 270.189,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50155,
    "c": 0.22559,
    "h": 301.2
  },
  "luminance": 0.10596
}

Semantic roles & 50–950 ramp

primary
#7D2DCC
secondary
#AAD085
accent
#E74193
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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