#6C2B97#6C2B97

#6C2B97 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.170 H 308.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6C2B97
RGBrgb(108, 43, 151)
HSLhsl(276, 56%, 38%)
HSVhsv(276, 72%, 59%)
CMYKcmyk(28.5%, 71.5%, 0%, 40.8%)
CIE-LABlab(32.15, 47.64, -47.11)
CIE-LCHlch(32.15, 67.00, 315.32°)
OKLaboklab(43.61% 0.1059 -0.1335)
OKLCHoklch(43.61% 0.17 308.4)
XYZxyz(12.6330, 7.1505, 29.9868)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2B97 #56972B
analogous
#362B97 #6C2B97 #972B8C
triadic
#6C2B97 #976C2B #2B976C
tetradic
#6C2B97 #97362B #56972B #2B8C97
square
#6C2B97 #97362B #56972B #2B8C97
split-complementary
#6C2B97 #8C972B #2B9736
monochromatic
#281038 #4A1D67 #6C2B97 #8E39C7 #A968D4

Accessibility & contrast

On white

8.64
#6C2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6C2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2B97
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2B97#FFFFFF#000000##FFFFFF
##6C2B971.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#104C95
Tritanopia (blue-blind)
#65435E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6c2b97;
/* rgb */ color: rgb(108, 43, 151);
/* oklch */ color: oklch(43.6% 0.170 308.4);
Tailwind
colors: {
  custom: {
    50: '#9a6ab6',
    500: '#6c2b97',
    950: '#000000',
  },
}
SCSS
$custom: #6c2b97;
$custom-light: #9a6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2b97",
  "rgb": {
    "r": 108,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 276.111,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43614,
    "c": 0.17038,
    "h": 308.4
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#6C2B97
secondary
#86BB63
accent
#DF4985
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6C2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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