#7F32B1#7F32B1

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

Color values

HEX#7F32B1
RGBrgb(127, 50, 177)
HSLhsl(276, 56%, 45%)
HSVhsv(276, 72%, 69%)
CMYKcmyk(28.2%, 71.8%, 0%, 30.6%)
CIE-LABlab(37.78, 54.38, -53.51)
CIE-LCHlch(37.78, 76.29, 315.46°)
OKLaboklab(48.78% 0.1208 -0.1517)
OKLCHoklch(48.78% 0.194 308.5)
XYZxyz(17.8272, 9.9679, 42.5713)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32B1 #64B132
analogous
#4032B1 #7F32B1 #B132A4
triadic
#7F32B1 #B17F32 #32B17F
tetradic
#7F32B1 #B14032 #64B132 #32A4B1
square
#7F32B1 #B14032 #64B132 #32A4B1
split-complementary
#7F32B1 #A4B132 #32B140
monochromatic
#3B1752 #5D2581 #7F32B1 #9D52CE #B882DC

Accessibility & contrast

On white

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

On black

2.99
#7F32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7F32B1#FFFFFF#000000##FFFFFF
##7F32B11.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#105AAE
Tritanopia (blue-blind)
#774F6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f32b1;
/* rgb */ color: rgb(127, 50, 177);
/* oklch */ color: oklch(48.8% 0.194 308.5);
Tailwind
colors: {
  custom: {
    50: '#a971c9',
    500: '#7f32b1',
    950: '#000000',
  },
}
SCSS
$custom: #7f32b1;
$custom-light: #a971c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32b1",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 276.378,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4878,
    "c": 0.1939,
    "h": 308.5
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#7F32B1
secondary
#97C57A
accent
#DF4984
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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