#6A34B8#6A34B8

#6A34B8 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.195 H 296.9°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#6A34B8
RGBrgb(106, 52, 184)
HSLhsl(265, 56%, 46%)
HSVhsv(265, 72%, 72%)
CMYKcmyk(42.4%, 71.7%, 0%, 27.8%)
CIE-LABlab(35.95, 51.14, -60.77)
CIE-LCHlch(35.95, 79.42, 310.08°)
OKLaboklab(47.06% 0.0881 -0.1738)
OKLCHoklch(47.06% 0.195 296.9)
XYZxyz(15.8213, 8.9805, 46.2380)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34B8 #82B834
analogous
#3440B8 #6A34B8 #AC34B8
triadic
#6A34B8 #B86A34 #34B86A
tetradic
#6A34B8 #B83440 #82B834 #34B8AC
square
#6A34B8 #B83440 #82B834 #34B8AC
split-complementary
#6A34B8 #B8AC34 #40B834
monochromatic
#331959 #4F2788 #6A34B8 #8A59D0 #AB89DE

Accessibility & contrast

On white

7.51
#6A34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6A34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34B8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34B8#FFFFFF#000000##FFFFFF
##6A34B81.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#565573
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6a34b8;
/* rgb */ color: rgb(106, 52, 184);
/* oklch */ color: oklch(47.1% 0.195 296.9);
Tailwind
colors: {
  custom: {
    50: '#9b70ce',
    500: '#6a34b8',
    950: '#000000',
  },
}
SCSS
$custom: #6a34b8;
$custom-light: #9b70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34b8",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 264.545,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47056,
    "c": 0.19481,
    "h": 296.9
  },
  "luminance": 0.08981
}

Semantic roles & 50–950 ramp

primary
#6A34B8
secondary
#AAC880
accent
#DF49A2
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6A34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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