#7F34AA#7F34AA

#7F34AA is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.184 H 310.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7F34AA
RGBrgb(127, 52, 170)
HSLhsl(278, 53%, 44%)
HSVhsv(278, 69%, 67%)
CMYKcmyk(25.3%, 69.4%, 0%, 33.3%)
CIE-LABlab(37.61, 51.93, -49.63)
CIE-LCHlch(37.61, 71.83, 316.30°)
OKLaboklab(48.5% 0.1196 -0.1403)
OKLCHoklch(48.5% 0.184 310.4)
XYZxyz(17.2347, 9.8707, 39.0197)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34AA #5FAA34
analogous
#4434AA #7F34AA #AA349A
triadic
#7F34AA #AA7F34 #34AA7F
tetradic
#7F34AA #AA4434 #5FAA34 #349AAA
square
#7F34AA #AA4434 #5FAA34 #349AAA
split-complementary
#7F34AA #9AAA34 #34AA44
monochromatic
#39174C #5C267B #7F34AA #9E51CA #B880D8

Accessibility & contrast

On white

7.06
#7F34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F34AA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34AA#FFFFFF#000000##FFFFFF
##7F34AA1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#225AA7
Tritanopia (blue-blind)
#794D6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f34aa;
/* rgb */ color: rgb(127, 52, 170);
/* oklch */ color: oklch(48.5% 0.184 310.4);
Tailwind
colors: {
  custom: {
    50: '#a872c4',
    500: '#7f34aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f34aa;
$custom-light: #a872c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34aa",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 278.136,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.485,
    "c": 0.18433,
    "h": 310.4
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#7F34AA
secondary
#93C178
accent
#DD4B80
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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