#6C188D#6C188D

#6C188D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.181 H 313.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6C188D
RGBrgb(108, 24, 141)
HSLhsl(283, 71%, 32%)
HSVhsv(283, 83%, 55%)
CMYKcmyk(23.4%, 83%, 0%, 44.7%)
CIE-LABlab(28.81, 52.83, -46.36)
CIE-LCHlch(28.81, 70.29, 318.74°)
OKLaboklab(41.02% 0.1255 -0.1312)
OKLCHoklch(41.02% 0.182 313.7)
XYZxyz(11.3179, 5.7649, 25.7107)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C188D #398D18
analogous
#32188D #6C188D #8D1874
triadic
#6C188D #8D6C18 #188D6C
tetradic
#6C188D #8D3218 #398D18 #18748D
square
#6C188D #8D3218 #398D18 #18748D
split-complementary
#6C188D #748D18 #188D32
monochromatic
#1C0624 #440F59 #6C188D #9421C1 #B241DF

Accessibility & contrast

On white

9.75
#6C188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6C188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C188D
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C188D#FFFFFF#000000##FFFFFF
##6C188D1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#07468B
Tritanopia (blue-blind)
#693554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c188d;
/* rgb */ color: rgb(108, 24, 141);
/* oklch */ color: oklch(41.0% 0.181 313.7);
Tailwind
colors: {
  custom: {
    50: '#9a61af',
    500: '#6c188d',
    950: '#000000',
  },
}
SCSS
$custom: #6c188d;
$custom-light: #9a61af;
$custom-dark: #000000;
JSON
{
  "hex": "#6c188d",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 283.077,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41021,
    "c": 0.1815,
    "h": 313.7
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#6C188D
secondary
#65BF42
accent
#EE3A6D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C188D

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

Preview Lab → · Contrast checker → · Palette generator →

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