#7F32C7#7F32C7

#7F32C7 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.216 H 302.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7F32C7
RGBrgb(127, 50, 199)
HSLhsl(271, 60%, 49%)
HSVhsv(271, 75%, 78%)
CMYKcmyk(36.2%, 74.9%, 0%, 22%)
CIE-LABlab(39.44, 59.42, -63.76)
CIE-LCHlch(39.44, 87.15, 312.98°)
OKLaboklab(50.47% 0.1166 -0.1818)
OKLCHoklch(50.47% 0.216 302.7)
XYZxyz(20.1994, 10.9167, 55.0647)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32C7 #7AC732
analogous
#3532C7 #7F32C7 #C732C5
triadic
#7F32C7 #C77F32 #32C77F
tetradic
#7F32C7 #C73532 #7AC732 #32C5C7
square
#7F32C7 #C73532 #7AC732 #32C5C7
split-complementary
#7F32C7 #C5C732 #32C735
monochromatic
#411965 #602696 #7F32C7 #9D5FD7 #BB90E3

Accessibility & contrast

On white

6.60
#7F32C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7F32C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F32C7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F32C7#FFFFFF#000000##FFFFFF
##7F32C71.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#70587B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f32c7;
/* rgb */ color: rgb(127, 50, 199);
/* oklch */ color: oklch(50.5% 0.216 302.7);
Tailwind
colors: {
  custom: {
    50: '#aa72d9',
    500: '#7f32c7',
    950: '#000000',
  },
}
SCSS
$custom: #7f32c7;
$custom-light: #aa72d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32c7",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 199
  },
  "hsl": {
    "h": 271.007,
    "s": 59.839,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5047,
    "c": 0.21601,
    "h": 302.7
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#7F32C7
secondary
#A9CE87
accent
#E34591
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F32C7

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

Preview Lab → · Contrast checker → · Palette generator →

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