#7F32AA#7F32AA

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

Color values

HEX#7F32AA
RGBrgb(127, 50, 170)
HSLhsl(279, 55%, 43%)
HSVhsv(279, 71%, 67%)
CMYKcmyk(25.3%, 70.6%, 0%, 33.3%)
CIE-LABlab(37.29, 52.82, -50.14)
CIE-LCHlch(37.29, 72.83, 316.49°)
OKLaboklab(48.27% 0.1217 -0.1418)
OKLCHoklch(48.27% 0.187 310.6)
XYZxyz(17.1473, 9.6959, 38.9906)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32AA #5DAA32
analogous
#4332AA #7F32AA #AA3299
triadic
#7F32AA #AA7F32 #32AA7F
tetradic
#7F32AA #AA4332 #5DAA32 #3299AA
square
#7F32AA #AA4332 #5DAA32 #3299AA
split-complementary
#7F32AA #99AA32 #32AA43
monochromatic
#38164B #5C247B #7F32AA #9E4ECB #B87DD9

Accessibility & contrast

On white

7.14
#7F32AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F32AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F32AA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F32AA#FFFFFF#000000##FFFFFF
##7F32AA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#1F59A7
Tritanopia (blue-blind)
#794C6A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f32aa;
/* rgb */ color: rgb(127, 50, 170);
/* oklch */ color: oklch(48.3% 0.187 310.6);
Tailwind
colors: {
  custom: {
    50: '#a870c4',
    500: '#7f32aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f32aa;
$custom-light: #a870c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32aa",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 278.5,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48273,
    "c": 0.18687,
    "h": 310.6
  },
  "luminance": 0.09696
}

Semantic roles & 50–950 ramp

primary
#7F32AA
secondary
#91C276
accent
#DE4A7F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F32AA

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

Preview Lab → · Contrast checker → · Palette generator →

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