#7F34C2#7F34C2

#7F34C2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.209 H 303.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7F34C2
RGBrgb(127, 52, 194)
HSLhsl(272, 58%, 48%)
HSVhsv(272, 73%, 76%)
CMYKcmyk(34.5%, 73.2%, 0%, 23.9%)
CIE-LABlab(39.35, 57.41, -60.99)
CIE-LCHlch(39.35, 83.76, 313.27°)
OKLaboklab(50.29% 0.1159 -0.1737)
OKLCHoklch(50.29% 0.209 303.7)
XYZxyz(19.7157, 10.8631, 52.0866)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34C2 #77C234
analogous
#3834C2 #7F34C2 #C234BE
triadic
#7F34C2 #C27F34 #34C27F
tetradic
#7F34C2 #C23834 #77C234 #34BEC2
square
#7F34C2 #C23834 #77C234 #34BEC2
split-complementary
#7F34C2 #BEC234 #34C238
monochromatic
#401A61 #5F2792 #7F34C2 #9D5FD4 #BB8FE1

Accessibility & contrast

On white

6.62
#7F34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7F34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34C2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34C2#FFFFFF#000000##FFFFFF
##7F34C21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#725778
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f34c2;
/* rgb */ color: rgb(127, 52, 194);
/* oklch */ color: oklch(50.3% 0.209 303.7);
Tailwind
colors: {
  custom: {
    50: '#aa72d5',
    500: '#7f34c2',
    950: '#000000',
  },
}
SCSS
$custom: #7f34c2;
$custom-light: #aa72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34c2",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 271.69,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50285,
    "c": 0.20878,
    "h": 303.7
  },
  "luminance": 0.10863
}

Semantic roles & 50–950 ramp

primary
#7F34C2
secondary
#A7CC86
accent
#E14790
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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