#6C2A97#6C2A97

#6C2A97 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.172 H 308.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#6C2A97
RGBrgb(108, 42, 151)
HSLhsl(276, 56%, 38%)
HSVhsv(276, 72%, 59%)
CMYKcmyk(28.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(31.99, 48.09, -47.37)
CIE-LCHlch(31.99, 67.51, 315.43°)
OKLaboklab(43.5% 0.1069 -0.1343)
OKLCHoklch(43.5% 0.172 308.5)
XYZxyz(12.5971, 7.0786, 29.9749)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2A97 #55972A
analogous
#352A97 #6C2A97 #972A8C
triadic
#6C2A97 #976C2A #2A976C
tetradic
#6C2A97 #97352A #55972A #2A8C97
square
#6C2A97 #97352A #55972A #2A8C97
split-complementary
#6C2A97 #8C972A #2A9735
monochromatic
#280F37 #4A1D67 #6C2A97 #8E37C7 #A967D5

Accessibility & contrast

On white

8.69
#6C2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6C2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2A97
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2A97#FFFFFF#000000##FFFFFF
##6C2A971.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#0E4C95
Tritanopia (blue-blind)
#65435E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c2a97;
/* rgb */ color: rgb(108, 42, 151);
/* oklch */ color: oklch(43.5% 0.172 308.5);
Tailwind
colors: {
  custom: {
    50: '#9a6ab6',
    500: '#6c2a97',
    950: '#000000',
  },
}
SCSS
$custom: #6c2a97;
$custom-light: #9a6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2a97",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 276.33,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43499,
    "c": 0.17164,
    "h": 308.5
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#6C2A97
secondary
#85BB62
accent
#E04884
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6C2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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