#6B34B5#6B34B5

#6B34B5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.192 H 298.1°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#6B34B5
RGBrgb(107, 52, 181)
HSLhsl(266, 55%, 46%)
HSVhsv(266, 71%, 71%)
CMYKcmyk(40.9%, 71.3%, 0%, 29%)
CIE-LABlab(35.83, 50.55, -59.18)
CIE-LCHlch(35.83, 77.83, 310.50°)
OKLaboklab(46.92% 0.0901 -0.1691)
OKLCHoklch(46.92% 0.192 298.1)
XYZxyz(15.6297, 8.9177, 44.6049)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B34B5 #7EB534
analogous
#343EB5 #6B34B5 #AB34B5
triadic
#6B34B5 #B56B34 #34B56B
tetradic
#6B34B5 #B5343E #7EB534 #34B5AB
square
#6B34B5 #B5343E #7EB534 #34B5AB
split-complementary
#6B34B5 #B5AB34 #3EB534
monochromatic
#331956 #4F2685 #6B34B5 #8A57CF #AB87DC

Accessibility & contrast

On white

7.54
#6B34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6B34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B34B5
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B34B5#FFFFFF#000000##FFFFFF
##6B34B51.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b34b5;
/* rgb */ color: rgb(107, 52, 181);
/* oklch */ color: oklch(46.9% 0.192 298.1);
Tailwind
colors: {
  custom: {
    50: '#9c70cc',
    500: '#6b34b5',
    950: '#000000',
  },
}
SCSS
$custom: #6b34b5;
$custom-light: #9c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b34b5",
  "rgb": {
    "r": 107,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 265.581,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46922,
    "c": 0.19158,
    "h": 298.1
  },
  "luminance": 0.08918
}

Semantic roles & 50–950 ramp

primary
#6B34B5
secondary
#A8C67F
accent
#DF499F
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6B34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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