#7D32B5#7D32B5

#7D32B5 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.197 H 306.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7D32B5
RGBrgb(125, 50, 181)
HSLhsl(274, 57%, 45%)
HSVhsv(274, 72%, 71%)
CMYKcmyk(30.9%, 72.4%, 0%, 29%)
CIE-LABlab(37.80, 54.89, -55.87)
CIE-LCHlch(37.80, 78.32, 314.49°)
OKLaboklab(48.83% 0.1174 -0.1587)
OKLCHoklch(48.83% 0.197 306.5)
XYZxyz(17.9367, 9.9776, 44.6880)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D32B5 #6AB532
analogous
#3B32B5 #7D32B5 #B532AB
triadic
#7D32B5 #B57D32 #32B57D
tetradic
#7D32B5 #B53B32 #6AB532 #32ABB5
square
#7D32B5 #B53B32 #6AB532 #32ABB5
split-complementary
#7D32B5 #ABB532 #32B53B
monochromatic
#3B1855 #5C2585 #7D32B5 #9B54D0 #B784DD

Accessibility & contrast

On white

7.01
#7D32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7D32B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D32B5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D32B5#FFFFFF#000000##FFFFFF
##7D32B51.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#735170
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d32b5;
/* rgb */ color: rgb(125, 50, 181);
/* oklch */ color: oklch(48.8% 0.197 306.5);
Tailwind
colors: {
  custom: {
    50: '#a871cc',
    500: '#7d32b5',
    950: '#000000',
  },
}
SCSS
$custom: #7d32b5;
$custom-light: #a871cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d32b5",
  "rgb": {
    "r": 125,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 274.351,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48827,
    "c": 0.1974,
    "h": 306.5
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#7D32B5
secondary
#9CC77C
accent
#E04889
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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