#6C187B#6C187B

#6C187B is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.7% C 0.166 H 321.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#6C187B
RGBrgb(108, 24, 123)
HSLhsl(291, 67%, 29%)
HSVhsv(291, 80%, 48%)
CMYKcmyk(12.2%, 80.5%, 0%, 51.8%)
CIE-LABlab(27.50, 49.23, -37.20)
CIE-LCHlch(27.50, 61.71, 322.92°)
OKLaboklab(39.68% 0.1286 -0.1043)
OKLCHoklch(39.68% 0.166 321)
XYZxyz(10.0857, 5.2720, 19.2214)
Luminance0.0527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C187B #277B18
analogous
#3B187B #6C187B #7B1859
triadic
#6C187B #7B6C18 #187B6C
tetradic
#6C187B #7B3B18 #277B18 #18597B
square
#6C187B #7B3B18 #277B18 #18597B
split-complementary
#6C187B #597B18 #187B3B
monochromatic
#16051A #3F0E48 #6C187B #9922AE #BF36D8

Accessibility & contrast

On white

10.22
#6C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#6C187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C187B
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C187B#FFFFFF#000000##FFFFFF
##6C187B1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#244479
Tritanopia (blue-blind)
#6D2D49
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c187b;
/* rgb */ color: rgb(108, 24, 123);
/* oklch */ color: oklch(39.7% 0.166 321.0);
Tailwind
colors: {
  custom: {
    50: '#9a60a2',
    500: '#6c187b',
    950: '#000000',
  },
}
SCSS
$custom: #6c187b;
$custom-light: #9a60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c187b",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 290.909,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3968,
    "c": 0.16557,
    "h": 321
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#6C187B
secondary
#50B03F
accent
#EA3E58
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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