#7F32CD#7F32CD

#7F32CD is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.0% C 0.222 H 301.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7F32CD
RGBrgb(127, 50, 205)
HSLhsl(270, 61%, 50%)
HSVhsv(270, 76%, 80%)
CMYKcmyk(38%, 75.6%, 0%, 19.6%)
CIE-LABlab(39.92, 60.82, -66.47)
CIE-LCHlch(39.92, 90.09, 312.46°)
OKLaboklab(50.95% 0.1152 -0.1898)
OKLCHoklch(50.95% 0.222 301.3)
XYZxyz(20.9097, 11.2009, 58.8061)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32CD #80CD32
analogous
#3233CD #7F32CD #CC32CD
triadic
#7F32CD #CD7F32 #32CD7F
tetradic
#7F32CD #CD3233 #80CD32 #32CDCC
square
#7F32CD #CD3233 #80CD32 #32CDCC
split-complementary
#7F32CD #CDCC32 #33CD32
monochromatic
#421A6B #61269C #7F32CD #9E63D9 #BC94E5

Accessibility & contrast

On white

6.48
#7F32CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7F32CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F32CD
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F32CD#FFFFFF#000000##FFFFFF
##7F32CD1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#6E5A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f32cd;
/* rgb */ color: rgb(127, 50, 205);
/* oklch */ color: oklch(51.0% 0.222 301.3);
Tailwind
colors: {
  custom: {
    50: '#ab72dd',
    500: '#7f32cd',
    950: '#000000',
  },
}
SCSS
$custom: #7f32cd;
$custom-light: #ab72dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32cd",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 205
  },
  "hsl": {
    "h": 269.806,
    "s": 60.784,
    "l": 50
  },
  "oklch": {
    "l": 0.50953,
    "c": 0.22201,
    "h": 301.3
  },
  "luminance": 0.11201
}

Semantic roles & 50–950 ramp

primary
#7F32CD
secondary
#AED08B
accent
#E44494
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F32CD

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

Preview Lab → · Contrast checker → · Palette generator →

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