#6C2A8A#6C2A8A

#6C2A8A is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.5% C 0.158 H 313.3°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#6C2A8A
RGBrgb(108, 42, 138)
HSLhsl(281, 53%, 35%)
HSVhsv(281, 70%, 54%)
CMYKcmyk(21.7%, 69.6%, 0%, 45.9%)
CIE-LABlab(31.07, 45.14, -40.86)
CIE-LCHlch(31.07, 60.88, 317.85°)
OKLaboklab(42.55% 0.1084 -0.1151)
OKLCHoklch(42.55% 0.158 313.3)
XYZxyz(11.5990, 6.6794, 24.7181)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2A8A #488A2A
analogous
#3C2A8A #6C2A8A #8A2A78
triadic
#6C2A8A #8A6C2A #2A8A6C
tetradic
#6C2A8A #8A3C2A #488A2A #2A788A
square
#6C2A8A #8A3C2A #488A2A #2A788A
split-complementary
#6C2A8A #788A2A #2A8A3C
monochromatic
#230D2C #471C5B #6C2A8A #9138B9 #AC60CF

Accessibility & contrast

On white

8.99
#6C2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6C2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2A8A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2A8A#FFFFFF#000000##FFFFFF
##6C2A8A1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#234B88
Tritanopia (blue-blind)
#693D56
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c2a8a;
/* rgb */ color: rgb(108, 42, 138);
/* oklch */ color: oklch(42.5% 0.158 313.3);
Tailwind
colors: {
  custom: {
    50: '#9969ad',
    500: '#6c2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #6c2a8a;
$custom-light: #9969ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2a8a",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 281.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4255,
    "c": 0.15817,
    "h": 313.3
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#6C2A8A
secondary
#77B45B
accent
#DD4B79
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6C2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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