#7F34B4#7F34B4

#7F34B4 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.195 H 307.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7F34B4
RGBrgb(127, 52, 180)
HSLhsl(275, 55%, 45%)
HSVhsv(275, 71%, 71%)
CMYKcmyk(29.4%, 71.1%, 0%, 29.4%)
CIE-LABlab(38.31, 54.18, -54.44)
CIE-LCHlch(38.31, 76.81, 314.86°)
OKLaboklab(49.22% 0.1183 -0.1544)
OKLCHoklch(49.22% 0.195 307.4)
XYZxyz(18.2169, 10.2635, 44.1926)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34B4 #69B434
analogous
#3F34B4 #7F34B4 #B434A9
triadic
#7F34B4 #B47F34 #34B47F
tetradic
#7F34B4 #B43F34 #69B434 #34A9B4
square
#7F34B4 #B43F34 #69B434 #34A9B4
split-complementary
#7F34B4 #A9B434 #34B43F
monochromatic
#3C1955 #5D2685 #7F34B4 #9D57CE #B986DC

Accessibility & contrast

On white

6.88
#7F34B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F34B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34B4
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34B4#FFFFFF#000000##FFFFFF
##7F34B41.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#0B5BB1
Tritanopia (blue-blind)
#765170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f34b4;
/* rgb */ color: rgb(127, 52, 180);
/* oklch */ color: oklch(49.2% 0.195 307.4);
Tailwind
colors: {
  custom: {
    50: '#a972cb',
    500: '#7f34b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f34b4;
$custom-light: #a972cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34b4",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 275.156,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49223,
    "c": 0.19452,
    "h": 307.4
  },
  "luminance": 0.10263
}

Semantic roles & 50–950 ramp

primary
#7F34B4
secondary
#9CC67E
accent
#DF4987
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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