#6A34B5#6A34B5

#6A34B5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.191 H 297.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#6A34B5
RGBrgb(106, 52, 181)
HSLhsl(265, 55%, 46%)
HSVhsv(265, 71%, 71%)
CMYKcmyk(41.4%, 71.3%, 0%, 29%)
CIE-LABlab(35.71, 50.36, -59.38)
CIE-LCHlch(35.71, 77.86, 310.30°)
OKLaboklab(46.81% 0.0887 -0.1697)
OKLCHoklch(46.81% 0.191 297.6)
XYZxyz(15.5102, 8.8561, 44.5993)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34B5 #7FB534
analogous
#343FB5 #6A34B5 #AA34B5
triadic
#6A34B5 #B56A34 #34B56A
tetradic
#6A34B5 #B5343F #7FB534 #34B5AA
square
#6A34B5 #B5343F #7FB534 #34B5AA
split-complementary
#6A34B5 #B5AA34 #3FB534
monochromatic
#321956 #4E2685 #6A34B5 #8957CF #AB87DC

Accessibility & contrast

On white

7.58
#6A34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6A34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34B5
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34B5#FFFFFF#000000##FFFFFF
##6A34B51.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#575471
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6a34b5;
/* rgb */ color: rgb(106, 52, 181);
/* oklch */ color: oklch(46.8% 0.191 297.6);
Tailwind
colors: {
  custom: {
    50: '#9b70cc',
    500: '#6a34b5',
    950: '#000000',
  },
}
SCSS
$custom: #6a34b5;
$custom-light: #9b70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34b5",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 265.116,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.19147,
    "h": 297.6
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#6A34B5
secondary
#A8C67F
accent
#DF49A0
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6A34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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