#7F34B5#7F34B5

#7F34B5 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.3% C 0.196 H 307.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7F34B5
RGBrgb(127, 52, 181)
HSLhsl(275, 55%, 46%)
HSVhsv(275, 71%, 71%)
CMYKcmyk(29.8%, 71.3%, 0%, 29%)
CIE-LABlab(38.38, 54.41, -54.91)
CIE-LCHlch(38.38, 77.30, 314.74°)
OKLaboklab(49.3% 0.1181 -0.1558)
OKLCHoklch(49.3% 0.196 307.2)
XYZxyz(18.3191, 10.3044, 44.7310)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34B5 #6AB534
analogous
#3F34B5 #7F34B5 #B534AA
triadic
#7F34B5 #B57F34 #34B57F
tetradic
#7F34B5 #B53F34 #6AB534 #34AAB5
square
#7F34B5 #B53F34 #6AB534 #34AAB5
split-complementary
#7F34B5 #AAB534 #34B53F
monochromatic
#3C1956 #5E2685 #7F34B5 #9D57CF #B987DC

Accessibility & contrast

On white

6.86
#7F34B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7F34B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34B5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34B5#FFFFFF#000000##FFFFFF
##7F34B51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B9
Deuteranopia (green-blind)
#075BB2
Tritanopia (blue-blind)
#765271
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f34b5;
/* rgb */ color: rgb(127, 52, 181);
/* oklch */ color: oklch(49.3% 0.196 307.2);
Tailwind
colors: {
  custom: {
    50: '#a972cc',
    500: '#7f34b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f34b5;
$custom-light: #a972cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34b5",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 274.884,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49297,
    "c": 0.19553,
    "h": 307.2
  },
  "luminance": 0.10304
}

Semantic roles & 50–950 ramp

primary
#7F34B5
secondary
#9DC67F
accent
#DF4988
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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