#6C187E#6C187E

#6C187E is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.9% C 0.168 H 319.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#6C187E
RGBrgb(108, 24, 126)
HSLhsl(289, 68%, 29%)
HSVhsv(289, 81%, 49%)
CMYKcmyk(14.3%, 81%, 0%, 50.6%)
CIE-LABlab(27.70, 49.81, -38.76)
CIE-LCHlch(27.70, 63.12, 322.11°)
OKLaboklab(39.89% 0.1282 -0.1089)
OKLCHoklch(39.89% 0.168 319.7)
XYZxyz(10.2764, 5.3483, 20.2256)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C187E #2A7E18
analogous
#39187E #6C187E #7E185D
triadic
#6C187E #7E6C18 #187E6C
tetradic
#6C187E #7E3918 #2A7E18 #185D7E
square
#6C187E #7E3918 #2A7E18 #185D7E
split-complementary
#6C187E #5D7E18 #187E39
monochromatic
#16051A #400E4B #6C187E #9822B1 #BC37D9

Accessibility & contrast

On white

10.15
#6C187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#6C187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C187E
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C187E#FFFFFF#000000##FFFFFF
##6C187E1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#21447C
Tritanopia (blue-blind)
#6C2E4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c187e;
/* rgb */ color: rgb(108, 24, 126);
/* oklch */ color: oklch(39.9% 0.168 319.7);
Tailwind
colors: {
  custom: {
    50: '#9a60a4',
    500: '#6c187e',
    950: '#000000',
  },
}
SCSS
$custom: #6c187e;
$custom-light: #9a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c187e",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 289.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39894,
    "c": 0.16818,
    "h": 319.7
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#6C187E
secondary
#54B23F
accent
#EB3D5C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6C187E

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

Preview Lab → · Contrast checker → · Palette generator →

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