#6C2A96#6C2A96

#6C2A96 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.171 H 308.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#6C2A96
RGBrgb(108, 42, 150)
HSLhsl(277, 56%, 38%)
HSVhsv(277, 72%, 59%)
CMYKcmyk(28%, 72%, 0%, 41.2%)
CIE-LABlab(31.91, 47.86, -46.88)
CIE-LCHlch(31.91, 67.00, 315.59°)
OKLaboklab(43.42% 0.1071 -0.1328)
OKLCHoklch(43.42% 0.171 308.9)
XYZxyz(12.5162, 7.0463, 29.5490)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2A96 #54962A
analogous
#362A96 #6C2A96 #962A8A
triadic
#6C2A96 #966C2A #2A966C
tetradic
#6C2A96 #96362A #54962A #2A8A96
square
#6C2A96 #96362A #54962A #2A8A96
split-complementary
#6C2A96 #8A962A #2A9636
monochromatic
#270F36 #4A1D66 #6C2A96 #8E37C6 #A966D4

Accessibility & contrast

On white

8.72
#6C2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6C2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2A96
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2A96#FFFFFF#000000##FFFFFF
##6C2A961.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#114C94
Tritanopia (blue-blind)
#66425D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c2a96;
/* rgb */ color: rgb(108, 42, 150);
/* oklch */ color: oklch(43.4% 0.171 308.9);
Tailwind
colors: {
  custom: {
    50: '#9a69b6',
    500: '#6c2a96',
    950: '#000000',
  },
}
SCSS
$custom: #6c2a96;
$custom-light: #9a69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2a96",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 276.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43423,
    "c": 0.17061,
    "h": 308.9
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#6C2A96
secondary
#84BA61
accent
#E04883
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6C2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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