#6C2181#6C2181

#6C2181 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.9% C 0.161 H 317.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#6C2181
RGBrgb(108, 33, 129)
HSLhsl(287, 59%, 32%)
HSVhsv(287, 74%, 51%)
CMYKcmyk(16.3%, 74.4%, 0%, 49.4%)
CIE-LABlab(29.06, 47.13, -38.47)
CIE-LCHlch(29.06, 60.84, 320.77°)
OKLaboklab(40.92% 0.1193 -0.1081)
OKLCHoklch(40.92% 0.161 317.8)
XYZxyz(10.6901, 5.8613, 21.3329)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2181 #368121
analogous
#3C2181 #6C2181 #812166
triadic
#6C2181 #816C21 #21816C
tetradic
#6C2181 #813C21 #368121 #216681
square
#6C2181 #813C21 #368121 #216681
split-complementary
#6C2181 #668121 #21813C
monochromatic
#1A0820 #431550 #6C2181 #952DB2 #B44BD1

Accessibility & contrast

On white

9.67
#6C2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6C2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2181
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2181#FFFFFF#000000##FFFFFF
##6C21811.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#25477F
Tritanopia (blue-blind)
#6B344F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c2181;
/* rgb */ color: rgb(108, 33, 129);
/* oklch */ color: oklch(40.9% 0.161 317.8);
Tailwind
colors: {
  custom: {
    50: '#9964a6',
    500: '#6c2181',
    950: '#000000',
  },
}
SCSS
$custom: #6c2181;
$custom-light: #9964a6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2181",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 286.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40921,
    "c": 0.16094,
    "h": 317.8
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#6C2181
secondary
#61B44A
accent
#E24568
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C2181

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

Preview Lab → · Contrast checker → · Palette generator →

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