#6B34A2#6B34A2

#6B34A2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.170 H 303.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#6B34A2
RGBrgb(107, 52, 162)
HSLhsl(270, 51%, 42%)
HSVhsv(270, 68%, 64%)
CMYKcmyk(34%, 67.9%, 0%, 36.5%)
CIE-LABlab(34.38, 45.73, -50.19)
CIE-LCHlch(34.38, 67.89, 312.34°)
OKLaboklab(45.43% 0.0931 -0.1426)
OKLCHoklch(45.43% 0.17 303.1)
XYZxyz(13.8115, 8.1904, 35.0287)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B34A2 #6BA234
analogous
#3434A2 #6B34A2 #A234A2
triadic
#6B34A2 #A26B34 #34A26B
tetradic
#6B34A2 #A23434 #6BA234 #34A2A2
square
#6B34A2 #A23434 #6BA234 #34A2A2
split-complementary
#6B34A2 #A2A234 #34A234
monochromatic
#2E1645 #4C2574 #6B34A2 #8A4DC6 #A87CD5

Accessibility & contrast

On white

7.96
#6B34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6B34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B34A2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B34A2#FFFFFF#000000##FFFFFF
##6B34A21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0451A0
Tritanopia (blue-blind)
#604D66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b34a2;
/* rgb */ color: rgb(107, 52, 162);
/* oklch */ color: oklch(45.4% 0.170 303.1);
Tailwind
colors: {
  custom: {
    50: '#9a6fbe',
    500: '#6b34a2',
    950: '#000000',
  },
}
SCSS
$custom: #6b34a2;
$custom-light: #9a6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6b34a2",
  "rgb": {
    "r": 107,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 270,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45433,
    "c": 0.1703,
    "h": 303.1
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#6B34A2
secondary
#99BE74
accent
#DB4D94
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6B34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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