#7D32B1#7D32B1

#7D32B1 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.193 H 307.6°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7D32B1
RGBrgb(125, 50, 177)
HSLhsl(275, 56%, 45%)
HSVhsv(275, 72%, 69%)
CMYKcmyk(29.4%, 71.8%, 0%, 30.6%)
CIE-LABlab(37.51, 53.98, -53.97)
CIE-LCHlch(37.51, 76.33, 315.00°)
OKLaboklab(48.53% 0.1181 -0.1531)
OKLCHoklch(48.53% 0.193 307.6)
XYZxyz(17.5322, 9.8157, 42.5575)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D32B1 #66B132
analogous
#3E32B1 #7D32B1 #B132A6
triadic
#7D32B1 #B17D32 #32B17D
tetradic
#7D32B1 #B13E32 #66B132 #32A6B1
square
#7D32B1 #B13E32 #66B132 #32A6B1
split-complementary
#7D32B1 #A6B132 #32B13E
monochromatic
#3A1752 #5B2581 #7D32B1 #9B52CE #B782DC

Accessibility & contrast

On white

7.09
#7D32B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7D32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D32B1
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D32B1#FFFFFF#000000##FFFFFF
##7D32B11.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0859AE
Tritanopia (blue-blind)
#754F6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d32b1;
/* rgb */ color: rgb(125, 50, 177);
/* oklch */ color: oklch(48.5% 0.193 307.6);
Tailwind
colors: {
  custom: {
    50: '#a771c9',
    500: '#7d32b1',
    950: '#000000',
  },
}
SCSS
$custom: #7d32b1;
$custom-light: #a771c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d32b1",
  "rgb": {
    "r": 125,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 275.433,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48527,
    "c": 0.19334,
    "h": 307.6
  },
  "luminance": 0.09816
}

Semantic roles & 50–950 ramp

primary
#7D32B1
secondary
#99C57A
accent
#DF4986
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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