#7F32AB#7F32AB

#7F32AB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.3% C 0.188 H 310.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7F32AB
RGBrgb(127, 50, 171)
HSLhsl(278, 55%, 43%)
HSVhsv(278, 71%, 67%)
CMYKcmyk(25.7%, 70.8%, 0%, 32.9%)
CIE-LABlab(37.36, 53.04, -50.63)
CIE-LCHlch(37.36, 73.33, 316.33°)
OKLaboklab(48.34% 0.1216 -0.1432)
OKLCHoklch(48.34% 0.188 310.3)
XYZxyz(17.2423, 9.7339, 39.4907)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32AB #5EAB32
analogous
#4232AB #7F32AB #AB329A
triadic
#7F32AB #AB7F32 #32AB7F
tetradic
#7F32AB #AB4232 #5EAB32 #329AAB
square
#7F32AB #AB4232 #5EAB32 #329AAB
split-complementary
#7F32AB #9AAB32 #32AB42
monochromatic
#39164C #5C247C #7F32AB #9E4FCB #B87ED9

Accessibility & contrast

On white

7.13
#7F32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F32AB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F32AB#FFFFFF#000000##FFFFFF
##7F32AB1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#1D59A8
Tritanopia (blue-blind)
#794C6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f32ab;
/* rgb */ color: rgb(127, 50, 171);
/* oklch */ color: oklch(48.3% 0.188 310.3);
Tailwind
colors: {
  custom: {
    50: '#a871c5',
    500: '#7f32ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f32ab;
$custom-light: #a871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32ab",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 278.182,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48344,
    "c": 0.18787,
    "h": 310.3
  },
  "luminance": 0.09734
}

Semantic roles & 50–950 ramp

primary
#7F32AB
secondary
#92C277
accent
#DE4A80
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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