#6A34B2#6A34B2

#6A34B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.188 H 298.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#6A34B2
RGBrgb(106, 52, 178)
HSLhsl(266, 55%, 45%)
HSVhsv(266, 71%, 70%)
CMYKcmyk(40.4%, 70.8%, 0%, 30.2%)
CIE-LABlab(35.47, 49.59, -57.99)
CIE-LCHlch(35.47, 76.30, 310.53°)
OKLaboklab(46.57% 0.0892 -0.1656)
OKLCHoklch(46.57% 0.188 298.3)
XYZxyz(15.2057, 8.7343, 42.9956)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34B2 #7CB234
analogous
#343DB2 #6A34B2 #A934B2
triadic
#6A34B2 #B26A34 #34B26A
tetradic
#6A34B2 #B2343D #7CB234 #34B2A9
square
#6A34B2 #B2343D #7CB234 #34B2A9
split-complementary
#6A34B2 #B2A934 #3DB234
monochromatic
#321853 #4E2683 #6A34B2 #8956CE #AA85DB

Accessibility & contrast

On white

7.64
#6A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6A34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34B2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34B2#FFFFFF#000000##FFFFFF
##6A34B21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#58536F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a34b2;
/* rgb */ color: rgb(106, 52, 178);
/* oklch */ color: oklch(46.6% 0.188 298.3);
Tailwind
colors: {
  custom: {
    50: '#9b70ca',
    500: '#6a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #6a34b2;
$custom-light: #9b70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34b2",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 265.714,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46566,
    "c": 0.18812,
    "h": 298.3
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

primary
#6A34B2
secondary
#A6C57D
accent
#DE4A9F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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