#7D2DB1#7D2DB1

#7D2DB1 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.199 H 308.1°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7D2DB1
RGBrgb(125, 45, 177)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 75%, 69%)
CMYKcmyk(29.4%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.76, 56.09, -55.18)
CIE-LCHlch(36.76, 78.68, 315.47°)
OKLaboklab(48% 0.123 -0.1566)
OKLCHoklch(48% 0.199 308.1)
XYZxyz(17.3300, 9.4113, 42.4901)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB1 #61B12D
analogous
#3B2DB1 #7D2DB1 #B12DA3
triadic
#7D2DB1 #B17D2D #2DB17D
tetradic
#7D2DB1 #B13B2D #61B12D #2DA3B1
square
#7D2DB1 #B13B2D #61B12D #2DA3B1
split-complementary
#7D2DB1 #A3B12D #2DB13B
monochromatic
#38144F #5B2180 #7D2DB1 #9C4AD1 #B77BDD

Accessibility & contrast

On white

7.29
#7D2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7D2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DB1
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DB1#FFFFFF#000000##FFFFFF
##7D2DB11.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#754D6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d2db1;
/* rgb */ color: rgb(125, 45, 177);
/* oklch */ color: oklch(48.0% 0.199 308.1);
Tailwind
colors: {
  custom: {
    50: '#a76ec9',
    500: '#7d2db1',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db1;
$custom-light: #a76ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db1",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 276.364,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.19913,
    "h": 308.1
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#7D2DB1
secondary
#94C674
accent
#E34583
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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