#6A34AA#6A34AA

#6A34AA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.179 H 300.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6A34AA
RGBrgb(106, 52, 170)
HSLhsl(267, 53%, 44%)
HSVhsv(267, 69%, 67%)
CMYKcmyk(37.6%, 69.4%, 0%, 33.3%)
CIE-LABlab(34.85, 47.54, -54.23)
CIE-LCHlch(34.85, 72.12, 311.24°)
OKLaboklab(45.93% 0.0906 -0.1545)
OKLCHoklch(45.93% 0.179 300.4)
XYZxyz(14.4258, 8.4223, 38.8881)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34AA #74AA34
analogous
#3439AA #6A34AA #A534AA
triadic
#6A34AA #AA6A34 #34AA6A
tetradic
#6A34AA #AA3439 #74AA34 #34AAA5
square
#6A34AA #AA3439 #74AA34 #34AAA5
split-complementary
#6A34AA #AAA534 #39AA34
monochromatic
#30174C #4D267B #6A34AA #8851CA #A880D8

Accessibility & contrast

On white

7.82
#6A34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6A34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34AA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34AA#FFFFFF#000000##FFFFFF
##6A34AA1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#5C506B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a34aa;
/* rgb */ color: rgb(106, 52, 170);
/* oklch */ color: oklch(45.9% 0.179 300.4);
Tailwind
colors: {
  custom: {
    50: '#9a70c4',
    500: '#6a34aa',
    950: '#000000',
  },
}
SCSS
$custom: #6a34aa;
$custom-light: #9a70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34aa",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 267.458,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4593,
    "c": 0.17913,
    "h": 300.4
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

primary
#6A34AA
secondary
#A0C178
accent
#DD4B9A
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A34AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6A34AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva