#7D2DB4#7D2DB4

#7D2DB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.202 H 307.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7D2DB4
RGBrgb(125, 45, 180)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(30.6%, 75%, 0%, 29.4%)
CIE-LABlab(36.99, 56.76, -56.59)
CIE-LCHlch(36.99, 80.15, 315.08°)
OKLaboklab(48.23% 0.1224 -0.1608)
OKLCHoklch(48.23% 0.202 307.3)
XYZxyz(17.6323, 9.5323, 44.0822)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DB4 #64B42D
analogous
#3A2DB4 #7D2DB4 #B42DA8
triadic
#7D2DB4 #B47D2D #2DB47D
tetradic
#7D2DB4 #B43A2D #64B42D #2DA8B4
square
#7D2DB4 #B43A2D #64B42D #2DA8B4
split-complementary
#7D2DB4 #A8B42D #2DB43A
monochromatic
#391552 #5B2183 #7D2DB4 #9C4CD2 #B77DDE

Accessibility & contrast

On white

7.23
#7D2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7D2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DB4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DB4#FFFFFF#000000##FFFFFF
##7D2DB41.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#744E6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d2db4;
/* rgb */ color: rgb(125, 45, 180);
/* oklch */ color: oklch(48.2% 0.202 307.3);
Tailwind
colors: {
  custom: {
    50: '#a86ecb',
    500: '#7d2db4',
    950: '#000000',
  },
}
SCSS
$custom: #7d2db4;
$custom-light: #a86ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2db4",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 275.556,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48228,
    "c": 0.20207,
    "h": 307.3
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#7D2DB4
secondary
#97C776
accent
#E34585
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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