#7A34AB#7A34AB

#7A34AB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.184 H 307.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7A34AB
RGBrgb(122, 52, 171)
HSLhsl(275, 53%, 44%)
HSVhsv(275, 70%, 67%)
CMYKcmyk(28.7%, 69.6%, 0%, 32.9%)
CIE-LABlab(36.99, 51.09, -51.26)
CIE-LCHlch(36.99, 72.37, 314.90°)
OKLaboklab(47.94% 0.1127 -0.1452)
OKLCHoklch(47.94% 0.184 307.8)
XYZxyz(16.6032, 9.5341, 39.4858)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34AB #65AB34
analogous
#3E34AB #7A34AB #AB34A0
triadic
#7A34AB #AB7A34 #34AB7A
tetradic
#7A34AB #AB3E34 #65AB34 #34A0AB
square
#7A34AB #AB3E34 #65AB34 #34A0AB
split-complementary
#7A34AB #A0AB34 #34AB3E
monochromatic
#37174D #59267C #7A34AB #9952CA #B481D9

Accessibility & contrast

On white

7.22
#7A34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7A34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A34AB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34AB#FFFFFF#000000##FFFFFF
##7A34AB1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#1658A8
Tritanopia (blue-blind)
#724E6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a34ab;
/* rgb */ color: rgb(122, 52, 171);
/* oklch */ color: oklch(47.9% 0.184 307.8);
Tailwind
colors: {
  custom: {
    50: '#a571c5',
    500: '#7a34ab',
    950: '#000000',
  },
}
SCSS
$custom: #7a34ab;
$custom-light: #a571c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34ab",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 275.294,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47936,
    "c": 0.18385,
    "h": 307.8
  },
  "luminance": 0.09534
}

Semantic roles & 50–950 ramp

primary
#7A34AB
secondary
#97C279
accent
#DD4B87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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