#6C3BA8#6C3BA8

#6C3BA8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.168 H 300.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6C3BA8
RGBrgb(108, 59, 168)
HSLhsl(267, 48%, 45%)
HSVhsv(267, 65%, 66%)
CMYKcmyk(35.7%, 64.9%, 0%, 34.1%)
CIE-LABlab(36.26, 43.83, -50.74)
CIE-LCHlch(36.26, 67.05, 310.82°)
OKLaboklab(46.95% 0.0858 -0.1442)
OKLCHoklch(46.95% 0.168 300.7)
XYZxyz(14.8145, 9.1431, 38.0225)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C3BA8 #77A83B
analogous
#3B41A8 #6C3BA8 #A33BA8
triadic
#6C3BA8 #A86C3B #3BA86C
tetradic
#6C3BA8 #A83B41 #77A83B #3BA8A3
square
#6C3BA8 #A83B41 #77A83B #3BA8A3
split-complementary
#6C3BA8 #A8A33B #41A83B
monochromatic
#321B4D #4F2B7B #6C3BA8 #8B5BC5 #AB88D5

Accessibility & contrast

On white

7.42
#6C3BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6C3BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C3BA8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C3BA8#FFFFFF#000000##FFFFFF
##6C3BA81.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#0B55A6
Tritanopia (blue-blind)
#5F536C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6c3ba8;
/* rgb */ color: rgb(108, 59, 168);
/* oklch */ color: oklch(47.0% 0.168 300.7);
Tailwind
colors: {
  custom: {
    50: '#9b74c3',
    500: '#6c3ba8',
    950: '#000000',
  },
}
SCSS
$custom: #6c3ba8;
$custom-light: #9b74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c3ba8",
  "rgb": {
    "r": 108,
    "g": 59,
    "b": 168
  },
  "hsl": {
    "h": 266.972,
    "s": 48.018,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46951,
    "c": 0.16783,
    "h": 300.7
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

primary
#6C3BA8
secondary
#A3C07F
accent
#D8509B
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6C3BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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