#6C188A#6C188A

#6C188A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.179 H 314.9°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#6C188A
RGBrgb(108, 24, 138)
HSLhsl(284, 70%, 32%)
HSVhsv(284, 83%, 54%)
CMYKcmyk(21.7%, 82.6%, 0%, 45.9%)
CIE-LABlab(28.58, 52.22, -44.87)
CIE-LCHlch(28.58, 68.84, 319.33°)
OKLaboklab(40.79% 0.1261 -0.1268)
OKLCHoklch(40.79% 0.179 314.9)
XYZxyz(11.0977, 5.6768, 24.5510)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C188A #368A18
analogous
#33188A #6C188A #8A186F
triadic
#6C188A #8A6C18 #188A6C
tetradic
#6C188A #8A3318 #368A18 #186F8A
square
#6C188A #8A3318 #368A18 #186F8A
split-complementary
#6C188A #6F8A18 #188A33
monochromatic
#1A0622 #430F56 #6C188A #9521BE #B43FDE

Accessibility & contrast

On white

9.84
#6C188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6C188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C188A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C188A#FFFFFF#000000##FFFFFF
##6C188A1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#104588
Tritanopia (blue-blind)
#693452
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c188a;
/* rgb */ color: rgb(108, 24, 138);
/* oklch */ color: oklch(40.8% 0.179 314.9);
Tailwind
colors: {
  custom: {
    50: '#9a61ad',
    500: '#6c188a',
    950: '#000000',
  },
}
SCSS
$custom: #6c188a;
$custom-light: #9a61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c188a",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 284.211,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40789,
    "c": 0.17881,
    "h": 314.9
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#6C188A
secondary
#61BD40
accent
#ED3B6A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C188A

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

Preview Lab → · Contrast checker → · Palette generator →

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