#7F34C1#7F34C1

#7F34C1 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.2% C 0.208 H 304.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7F34C1
RGBrgb(127, 52, 193)
HSLhsl(272, 58%, 48%)
HSVhsv(272, 73%, 76%)
CMYKcmyk(34.2%, 73.1%, 0%, 24.3%)
CIE-LABlab(39.27, 57.17, -60.53)
CIE-LCHlch(39.27, 83.26, 313.37°)
OKLaboklab(50.21% 0.1161 -0.1723)
OKLCHoklch(50.21% 0.208 304)
XYZxyz(19.6038, 10.8183, 51.4971)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34C1 #76C134
analogous
#3934C1 #7F34C1 #C134BC
triadic
#7F34C1 #C17F34 #34C17F
tetradic
#7F34C1 #C13934 #76C134 #34BCC1
square
#7F34C1 #C13934 #76C134 #34BCC1
split-complementary
#7F34C1 #BCC134 #34C139
monochromatic
#401A61 #5F2791 #7F34C1 #9D5ED4 #BA8FE1

Accessibility & contrast

On white

6.64
#7F34C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7F34C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34C1
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34C1#FFFFFF#000000##FFFFFF
##7F34C11.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#725678
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f34c1;
/* rgb */ color: rgb(127, 52, 193);
/* oklch */ color: oklch(50.2% 0.208 304.0);
Tailwind
colors: {
  custom: {
    50: '#aa72d5',
    500: '#7f34c1',
    950: '#000000',
  },
}
SCSS
$custom: #7f34c1;
$custom-light: #aa72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34c1",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 193
  },
  "hsl": {
    "h": 271.915,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50207,
    "c": 0.20776,
    "h": 304
  },
  "luminance": 0.10818
}

Semantic roles & 50–950 ramp

primary
#7F34C1
secondary
#A6CB86
accent
#E1478F
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F34C1

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

Preview Lab → · Contrast checker → · Palette generator →

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