#7F34C5#7F34C5

#7F34C5 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.212 H 303.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7F34C5
RGBrgb(127, 52, 197)
HSLhsl(271, 58%, 49%)
HSVhsv(271, 74%, 77%)
CMYKcmyk(35.5%, 73.6%, 0%, 22.7%)
CIE-LABlab(39.58, 58.11, -62.37)
CIE-LCHlch(39.58, 85.24, 312.98°)
OKLaboklab(50.52% 0.1153 -0.1777)
OKLCHoklch(50.52% 0.212 303)
XYZxyz(20.0561, 10.9992, 53.8789)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34C5 #7AC534
analogous
#3634C5 #7F34C5 #C534C3
triadic
#7F34C5 #C57F34 #34C57F
tetradic
#7F34C5 #C53634 #7AC534 #34C3C5
square
#7F34C5 #C53634 #7AC534 #34C3C5
split-complementary
#7F34C5 #C3C534 #34C536
monochromatic
#411A64 #602795 #7F34C5 #9D61D5 #BB91E2

Accessibility & contrast

On white

6.56
#7F34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7F34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34C5
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34C5#FFFFFF#000000##FFFFFF
##7F34C51.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#71587A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f34c5;
/* rgb */ color: rgb(127, 52, 197);
/* oklch */ color: oklch(50.5% 0.212 303.0);
Tailwind
colors: {
  custom: {
    50: '#aa73d8',
    500: '#7f34c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f34c5;
$custom-light: #aa73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34c5",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 271.034,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50519,
    "c": 0.21183,
    "h": 303
  },
  "luminance": 0.10999
}

Semantic roles & 50–950 ramp

primary
#7F34C5
secondary
#A9CD88
accent
#E14691
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7F34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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