#6C187D#6C187D

#6C187D is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.8% C 0.167 H 320.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#6C187D
RGBrgb(108, 24, 125)
HSLhsl(290, 68%, 29%)
HSVhsv(290, 81%, 49%)
CMYKcmyk(13.6%, 80.8%, 0%, 51%)
CIE-LABlab(27.63, 49.62, -38.24)
CIE-LCHlch(27.63, 62.65, 322.38°)
OKLaboklab(39.82% 0.1283 -0.1073)
OKLCHoklch(39.82% 0.167 320.1)
XYZxyz(10.2122, 5.3226, 19.8875)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C187D #297D18
analogous
#3A187D #6C187D #7D185C
triadic
#6C187D #7D6C18 #187D6C
tetradic
#6C187D #7D3A18 #297D18 #185C7D
square
#6C187D #7D3A18 #297D18 #185C7D
split-complementary
#6C187D #5C7D18 #187D3A
monochromatic
#16051A #400E4A #6C187D #9822B0 #BD37D9

Accessibility & contrast

On white

10.17
#6C187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#6C187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C187D
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C187D#FFFFFF#000000##FFFFFF
##6C187D1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#22447B
Tritanopia (blue-blind)
#6C2E4A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c187d;
/* rgb */ color: rgb(108, 24, 125);
/* oklch */ color: oklch(39.8% 0.167 320.1);
Tailwind
colors: {
  custom: {
    50: '#9a60a3',
    500: '#6c187d',
    950: '#000000',
  },
}
SCSS
$custom: #6c187d;
$custom-light: #9a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c187d",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 289.901,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39822,
    "c": 0.16731,
    "h": 320.1
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#6C187D
secondary
#53B23F
accent
#EB3D5A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6C187D

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

Preview Lab → · Contrast checker → · Palette generator →

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