#7F34C0#7F34C0

#7F34C0 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.207 H 304.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7F34C0
RGBrgb(127, 52, 192)
HSLhsl(272, 57%, 48%)
HSVhsv(272, 73%, 75%)
CMYKcmyk(33.9%, 72.9%, 0%, 24.7%)
CIE-LABlab(39.20, 56.94, -60.07)
CIE-LCHlch(39.20, 82.77, 313.47°)
OKLaboklab(50.13% 0.1162 -0.171)
OKLCHoklch(50.13% 0.207 304.2)
XYZxyz(19.4926, 10.7738, 50.9116)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34C0 #75C034
analogous
#3934C0 #7F34C0 #C034BB
triadic
#7F34C0 #C07F34 #34C07F
tetradic
#7F34C0 #C03934 #75C034 #34BBC0
square
#7F34C0 #C03934 #75C034 #34BBC0
split-complementary
#7F34C0 #BBC034 #34C039
monochromatic
#3F1A60 #5F2790 #7F34C0 #9D5ED3 #BA8EE0

Accessibility & contrast

On white

6.66
#7F34C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7F34C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34C0
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34C0#FFFFFF#000000##FFFFFF
##7F34C01.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#725677
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f34c0;
/* rgb */ color: rgb(127, 52, 192);
/* oklch */ color: oklch(50.1% 0.207 304.2);
Tailwind
colors: {
  custom: {
    50: '#aa72d4',
    500: '#7f34c0',
    950: '#000000',
  },
}
SCSS
$custom: #7f34c0;
$custom-light: #aa72d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34c0",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 192
  },
  "hsl": {
    "h": 272.143,
    "s": 57.377,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5013,
    "c": 0.20674,
    "h": 304.2
  },
  "luminance": 0.10774
}

Semantic roles & 50–950 ramp

primary
#7F34C0
secondary
#A5CB85
accent
#E1478E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F34C0

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

Preview Lab → · Contrast checker → · Palette generator →

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