#7F34A5#7F34A5

#7F34A5 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.179 H 312.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7F34A5
RGBrgb(127, 52, 165)
HSLhsl(280, 52%, 43%)
HSVhsv(280, 68%, 65%)
CMYKcmyk(23%, 68.5%, 0%, 35.3%)
CIE-LABlab(37.27, 50.82, -47.18)
CIE-LCHlch(37.27, 69.35, 317.13°)
OKLaboklab(48.15% 0.12 -0.1331)
OKLCHoklch(48.15% 0.179 312)
XYZxyz(16.7707, 9.6851, 36.5760)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34A5 #5AA534
analogous
#4634A5 #7F34A5 #A53493
triadic
#7F34A5 #A57F34 #34A57F
tetradic
#7F34A5 #A54634 #5AA534 #3493A5
square
#7F34A5 #A54634 #5AA534 #3493A5
split-complementary
#7F34A5 #93A534 #34A546
monochromatic
#371748 #5B2576 #7F34A5 #9F4FC7 #B87DD6

Accessibility & contrast

On white

7.15
#7F34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F34A5
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34A5#FFFFFF#000000##FFFFFF
##7F34A51.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#2959A2
Tritanopia (blue-blind)
#7B4B68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f34a5;
/* rgb */ color: rgb(127, 52, 165);
/* oklch */ color: oklch(48.1% 0.179 312.0);
Tailwind
colors: {
  custom: {
    50: '#a871c0',
    500: '#7f34a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f34a5;
$custom-light: #a871c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34a5",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 279.823,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4815,
    "c": 0.17924,
    "h": 312
  },
  "luminance": 0.09685
}

Semantic roles & 50–950 ramp

primary
#7F34A5
secondary
#8EBF76
accent
#DC4C7C
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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