#6C2A82#6C2A82

#6C2A82 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.0% C 0.150 H 316.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#6C2A82
RGBrgb(108, 42, 130)
HSLhsl(285, 51%, 34%)
HSVhsv(285, 68%, 51%)
CMYKcmyk(16.9%, 67.7%, 0%, 49%)
CIE-LABlab(30.54, 43.38, -36.73)
CIE-LCHlch(30.54, 56.84, 319.74°)
OKLaboklab(42% 0.1089 -0.103)
OKLCHoklch(42% 0.15 316.6)
XYZxyz(11.0410, 6.4562, 21.7793)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2A82 #40822A
analogous
#402A82 #6C2A82 #822A6C
triadic
#6C2A82 #826C2A #2A826C
tetradic
#6C2A82 #82402A #40822A #2A6C82
square
#6C2A82 #82402A #40822A #2A6C82
split-complementary
#6C2A82 #6C822A #2A8240
monochromatic
#1F0C25 #461B54 #6C2A82 #9239B0 #AF5CCA

Accessibility & contrast

On white

9.17
#6C2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6C2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2A82
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2A82#FFFFFF#000000##FFFFFF
##6C2A821.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054485
Deuteranopia (green-blind)
#2B4A80
Tritanopia (blue-blind)
#6B3A52
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c2a82;
/* rgb */ color: rgb(108, 42, 130);
/* oklch */ color: oklch(42.0% 0.150 316.6);
Tailwind
colors: {
  custom: {
    50: '#9969a7',
    500: '#6c2a82',
    950: '#000000',
  },
}
SCSS
$custom: #6c2a82;
$custom-light: #9969a7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2a82",
  "rgb": {
    "r": 108,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 285,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41999,
    "c": 0.14994,
    "h": 316.6
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#6C2A82
secondary
#6EB058
accent
#DB4D71
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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