#6B34AB#6B34AB

#6B34AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.180 H 300.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#6B34AB
RGBrgb(107, 52, 171)
HSLhsl(268, 53%, 44%)
HSVhsv(268, 70%, 67%)
CMYKcmyk(37.4%, 69.6%, 0%, 32.9%)
CIE-LABlab(35.05, 47.99, -54.50)
CIE-LCHlch(35.05, 72.62, 311.37°)
OKLaboklab(46.12% 0.0918 -0.1553)
OKLCHoklch(46.12% 0.18 300.6)
XYZxyz(14.6403, 8.5219, 39.3938)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B34AB #74AB34
analogous
#3438AB #6B34AB #A634AB
triadic
#6B34AB #AB6B34 #34AB6B
tetradic
#6B34AB #AB3438 #74AB34 #34ABA6
square
#6B34AB #AB3438 #74AB34 #34ABA6
split-complementary
#6B34AB #ABA634 #38AB34
monochromatic
#30174D #4E267C #6B34AB #8A52CA #A981D9

Accessibility & contrast

On white

7.77
#6B34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6B34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B34AB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B34AB#FFFFFF#000000##FFFFFF
##6B34AB1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#5D506B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6b34ab;
/* rgb */ color: rgb(107, 52, 171);
/* oklch */ color: oklch(46.1% 0.180 300.6);
Tailwind
colors: {
  custom: {
    50: '#9b70c5',
    500: '#6b34ab',
    950: '#000000',
  },
}
SCSS
$custom: #6b34ab;
$custom-light: #9b70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b34ab",
  "rgb": {
    "r": 107,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 267.731,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46124,
    "c": 0.18043,
    "h": 300.6
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#6B34AB
secondary
#A0C279
accent
#DD4B99
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6B34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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