#6C187F#6C187F

#6C187F is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.0% C 0.169 H 319.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#6C187F
RGBrgb(108, 24, 127)
HSLhsl(289, 68%, 30%)
HSVhsv(289, 81%, 50%)
CMYKcmyk(15%, 81.1%, 0%, 50.2%)
CIE-LABlab(27.78, 50.01, -39.28)
CIE-LCHlch(27.78, 63.59, 321.85°)
OKLaboklab(39.97% 0.1281 -0.1104)
OKLCHoklch(39.97% 0.169 319.2)
XYZxyz(10.3412, 5.3742, 20.5672)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C187F #2B7F18
analogous
#39187F #6C187F #7F185F
triadic
#6C187F #7F6C18 #187F6C
tetradic
#6C187F #7F3918 #2B7F18 #185F7F
square
#6C187F #7F3918 #2B7F18 #185F7F
split-complementary
#6C187F #5F7F18 #187F39
monochromatic
#16051A #400E4C #6C187F #9822B2 #BC38D9

Accessibility & contrast

On white

10.12
#6C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C187F
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C187F#FFFFFF#000000##FFFFFF
##6C187F1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#20447D
Tritanopia (blue-blind)
#6C2F4C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6c187f;
/* rgb */ color: rgb(108, 24, 127);
/* oklch */ color: oklch(40.0% 0.169 319.2);
Tailwind
colors: {
  custom: {
    50: '#9a60a5',
    500: '#6c187f',
    950: '#000000',
  },
}
SCSS
$custom: #6c187f;
$custom-light: #9a60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c187f",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 288.932,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39966,
    "c": 0.16907,
    "h": 319.2
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#6C187F
secondary
#55B33F
accent
#EB3D5D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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