#7D2DAB#7D2DAB

#7D2DAB is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.193 H 309.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7D2DAB
RGBrgb(125, 45, 171)
HSLhsl(278, 58%, 42%)
HSVhsv(278, 74%, 67%)
CMYKcmyk(26.9%, 73.7%, 0%, 32.9%)
CIE-LABlab(36.32, 54.77, -52.32)
CIE-LCHlch(36.32, 75.74, 316.31°)
OKLaboklab(47.55% 0.124 -0.1482)
OKLCHoklch(47.55% 0.193 309.9)
XYZxyz(16.7451, 9.1774, 39.4095)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DAB #5BAB2D
analogous
#3E2DAB #7D2DAB #AB2D9A
triadic
#7D2DAB #AB7D2D #2DAB7D
tetradic
#7D2DAB #AB3E2D #5BAB2D #2D9AAB
square
#7D2DAB #AB3E2D #5BAB2D #2D9AAB
split-complementary
#7D2DAB #9AAB2D #2DAB3E
monochromatic
#36144A #5A207B #7D2DAB #9D47CE #B777DB

Accessibility & contrast

On white

7.41
#7D2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7D2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2DAB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DAB#FFFFFF#000000##FFFFFF
##7D2DAB1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#1057A8
Tritanopia (blue-blind)
#764A6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2dab;
/* rgb */ color: rgb(125, 45, 171);
/* oklch */ color: oklch(47.5% 0.193 309.9);
Tailwind
colors: {
  custom: {
    50: '#a76ec5',
    500: '#7d2dab',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dab;
$custom-light: #a76ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dab",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 278.095,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47548,
    "c": 0.19326,
    "h": 309.9
  },
  "luminance": 0.09177
}

Semantic roles & 50–950 ramp

primary
#7D2DAB
secondary
#8FC371
accent
#E2467F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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