#6B34B6#6B34B6

#6B34B6 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.193 H 297.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6B34B6
RGBrgb(107, 52, 182)
HSLhsl(265, 56%, 46%)
HSVhsv(265, 71%, 71%)
CMYKcmyk(41.2%, 71.4%, 0%, 28.6%)
CIE-LABlab(35.91, 50.80, -59.65)
CIE-LCHlch(35.91, 78.35, 310.42°)
OKLaboklab(47% 0.0899 -0.1704)
OKLCHoklch(47% 0.193 297.8)
XYZxyz(15.7327, 8.9589, 45.1473)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B34B6 #7FB634
analogous
#343EB6 #6B34B6 #AC34B6
triadic
#6B34B6 #B66B34 #34B66B
tetradic
#6B34B6 #B6343E #7FB634 #34B6AC
square
#6B34B6 #B6343E #7FB634 #34B6AC
split-complementary
#6B34B6 #B6AC34 #3EB634
monochromatic
#331957 #4F2686 #6B34B6 #8A58CF #AC88DD

Accessibility & contrast

On white

7.52
#6B34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6B34B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B34B6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B34B6#FFFFFF#000000##FFFFFF
##6B34B61.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#585471
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6b34b6;
/* rgb */ color: rgb(107, 52, 182);
/* oklch */ color: oklch(47.0% 0.193 297.8);
Tailwind
colors: {
  custom: {
    50: '#9c70cd',
    500: '#6b34b6',
    950: '#000000',
  },
}
SCSS
$custom: #6b34b6;
$custom-light: #9c70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b34b6",
  "rgb": {
    "r": 107,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 265.385,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47003,
    "c": 0.1927,
    "h": 297.8
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#6B34B6
secondary
#A8C77F
accent
#DF499F
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6B34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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