#7F34C7#7F34C7

#7F34C7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.214 H 302.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7F34C7
RGBrgb(127, 52, 199)
HSLhsl(271, 59%, 49%)
HSVhsv(271, 74%, 78%)
CMYKcmyk(36.2%, 73.9%, 0%, 22%)
CIE-LABlab(39.73, 58.58, -63.28)
CIE-LCHlch(39.73, 86.23, 312.79°)
OKLaboklab(50.68% 0.1148 -0.1804)
OKLCHoklch(50.68% 0.214 302.5)
XYZxyz(20.2867, 11.0915, 55.0939)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34C7 #7CC734
analogous
#3534C7 #7F34C7 #C734C6
triadic
#7F34C7 #C77F34 #34C77F
tetradic
#7F34C7 #C73534 #7CC734 #34C6C7
square
#7F34C7 #C73534 #7CC734 #34C6C7
split-complementary
#7F34C7 #C6C734 #34C735
monochromatic
#411B66 #602796 #7F34C7 #9D62D6 #BC93E3

Accessibility & contrast

On white

6.52
#7F34C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F34C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34C7
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34C7#FFFFFF#000000##FFFFFF
##7F34C71.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#70597B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f34c7;
/* rgb */ color: rgb(127, 52, 199);
/* oklch */ color: oklch(50.7% 0.214 302.5);
Tailwind
colors: {
  custom: {
    50: '#aa73d9',
    500: '#7f34c7',
    950: '#000000',
  },
}
SCSS
$custom: #7f34c7;
$custom-light: #aa73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34c7",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 270.612,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50677,
    "c": 0.21386,
    "h": 302.5
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#7F34C7
secondary
#ABCE89
accent
#E24692
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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