#7F32B8#7F32B8

#7F32B8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.201 H 306.5°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7F32B8
RGBrgb(127, 50, 184)
HSLhsl(274, 57%, 46%)
HSVhsv(274, 73%, 72%)
CMYKcmyk(31%, 72.8%, 0%, 27.8%)
CIE-LABlab(38.29, 55.96, -56.83)
CIE-LCHlch(38.29, 79.76, 314.56°)
OKLaboklab(49.3% 0.1196 -0.1614)
OKLCHoklch(49.3% 0.201 306.5)
XYZxyz(18.5429, 10.2541, 46.3405)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F32B8 #6BB832
analogous
#3C32B8 #7F32B8 #B832AE
triadic
#7F32B8 #B87F32 #32B87F
tetradic
#7F32B8 #B83C32 #6BB832 #32AEB8
square
#7F32B8 #B83C32 #6BB832 #32AEB8
split-complementary
#7F32B8 #AEB832 #32B83C
monochromatic
#3D1858 #5E2588 #7F32B8 #9D56D1 #B986DE

Accessibility & contrast

On white

6.88
#7F32B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F32B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F32B8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F32B8#FFFFFF#000000##FFFFFF
##7F32B81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#755272
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f32b8;
/* rgb */ color: rgb(127, 50, 184);
/* oklch */ color: oklch(49.3% 0.201 306.5);
Tailwind
colors: {
  custom: {
    50: '#a971ce',
    500: '#7f32b8',
    950: '#000000',
  },
}
SCSS
$custom: #7f32b8;
$custom-light: #a971ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f32b8",
  "rgb": {
    "r": 127,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 274.478,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49303,
    "c": 0.20093,
    "h": 306.5
  },
  "luminance": 0.10254
}

Semantic roles & 50–950 ramp

primary
#7F32B8
secondary
#9DC87E
accent
#E14788
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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