#6B34B2#6B34B2

#6B34B2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.188 H 298.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#6B34B2
RGBrgb(107, 52, 178)
HSLhsl(266, 55%, 45%)
HSVhsv(266, 71%, 70%)
CMYKcmyk(39.9%, 70.8%, 0%, 30.2%)
CIE-LABlab(35.59, 49.78, -57.79)
CIE-LCHlch(35.59, 76.27, 310.74°)
OKLaboklab(46.68% 0.0907 -0.165)
OKLCHoklch(46.68% 0.188 298.8)
XYZxyz(15.3252, 8.7959, 43.0012)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B34B2 #7BB234
analogous
#343CB2 #6B34B2 #AA34B2
triadic
#6B34B2 #B26B34 #34B26B
tetradic
#6B34B2 #B2343C #7BB234 #34B2AA
square
#6B34B2 #B2343C #7BB234 #34B2AA
split-complementary
#6B34B2 #B2AA34 #3CB234
monochromatic
#321853 #4F2683 #6B34B2 #8A56CE #AB85DB

Accessibility & contrast

On white

7.61
#6B34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6B34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B34B2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B34B2#FFFFFF#000000##FFFFFF
##6B34B21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#5A536F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6b34b2;
/* rgb */ color: rgb(107, 52, 178);
/* oklch */ color: oklch(46.7% 0.188 298.8);
Tailwind
colors: {
  custom: {
    50: '#9b70ca',
    500: '#6b34b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b34b2;
$custom-light: #9b70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b34b2",
  "rgb": {
    "r": 107,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 266.19,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46679,
    "c": 0.18825,
    "h": 298.8
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

primary
#6B34B2
secondary
#A5C57D
accent
#DE4A9D
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6B34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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