#7F32AC#7F32AC

#7F32AC is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.4% C 0.189 H 310.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7F32AC
RGBrgb(127, 50, 172)
HSLhsl(278, 55%, 44%)
HSVhsv(278, 71%, 67%)
CMYKcmyk(26.2%, 70.9%, 0%, 32.5%)
CIE-LABlab(37.43, 53.26, -51.11)
CIE-LCHlch(37.43, 73.82, 316.18°)
OKLaboklab(48.42% 0.1215 -0.1446)
OKLCHoklch(48.42% 0.189 310)
XYZxyz(17.3379, 9.7722, 39.9946)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32AC #5FAC32
analogous
#4232AC #7F32AC #AC329C
triadic
#7F32AC #AC7F32 #32AC7F
tetradic
#7F32AC #AC4232 #5FAC32 #329CAC
square
#7F32AC #AC4232 #5FAC32 #329CAC
split-complementary
#7F32AC #9CAC32 #32AC42
monochromatic
#39164D #5C247D #7F32AC #9E4FCC #B87FDA

Accessibility & contrast

On white

7.11
#7F32AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F32AC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F32AC#FFFFFF#000000##FFFFFF
##7F32AC1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#1C59A9
Tritanopia (blue-blind)
#794D6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f32ac;
/* rgb */ color: rgb(127, 50, 172);
/* oklch */ color: oklch(48.4% 0.189 310.0);
Tailwind
colors: {
  custom: {
    50: '#a871c5',
    500: '#7f32ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f32ac;
$custom-light: #a871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32ac",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 172
  },
  "hsl": {
    "h": 277.869,
    "s": 54.955,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48416,
    "c": 0.18887,
    "h": 310
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#7F32AC
secondary
#93C377
accent
#DE4A80
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F32AC

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

Preview Lab → · Contrast checker → · Palette generator →

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