#7D2DCA#7D2DCA

#7D2DCA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.0% C 0.224 H 301.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7D2DCA
RGBrgb(125, 45, 202)
HSLhsl(271, 64%, 48%)
HSVhsv(271, 78%, 79%)
CMYKcmyk(38.1%, 77.7%, 0%, 20.8%)
CIE-LABlab(38.73, 61.77, -66.68)
CIE-LCHlch(38.73, 90.89, 312.81°)
OKLaboklab(49.99% 0.1173 -0.1904)
OKLCHoklch(49.99% 0.224 301.6)
XYZxyz(20.0539, 10.5009, 56.8360)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DCA #7ACA2D
analogous
#2E2DCA #7D2DCA #CA2DC8
triadic
#7D2DCA #CA7D2D #2DCA7D
tetradic
#7D2DCA #CA2E2D #7ACA2D #2DC8CA
square
#7D2DCA #CA2E2D #7ACA2D #2DC8CA
split-complementary
#7D2DCA #C8CA2D #2DCA2E
monochromatic
#3F1766 #5E2298 #7D2DCA #9B5ADA #BA8CE5

Accessibility & contrast

On white

6.77
#7D2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7D2DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2DCA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DCA#FFFFFF#000000##FFFFFF
##7D2DCA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#6C577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d2dca;
/* rgb */ color: rgb(125, 45, 202);
/* oklch */ color: oklch(50.0% 0.224 301.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fdb',
    500: '#7d2dca',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dca;
$custom-light: #aa6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dca",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 270.573,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49989,
    "c": 0.22363,
    "h": 301.6
  },
  "luminance": 0.10501
}

Semantic roles & 50–950 ramp

primary
#7D2DCA
secondary
#A9CF83
accent
#E74192
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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