#6C177D#6C177D

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

Color values

HEX#6C177D
RGBrgb(108, 23, 125)
HSLhsl(290, 69%, 29%)
HSVhsv(290, 82%, 49%)
CMYKcmyk(13.6%, 81.6%, 0%, 51%)
CIE-LABlab(27.52, 49.94, -38.42)
CIE-LCHlch(27.52, 63.01, 322.43°)
OKLaboklab(39.74% 0.1292 -0.1079)
OKLCHoklch(39.74% 0.168 320.1)
XYZxyz(10.1920, 5.2821, 19.8808)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C177D #287D17
analogous
#39177D #6C177D #7D175B
triadic
#6C177D #7D6C17 #177D6C
tetradic
#6C177D #7D3917 #287D17 #175B7D
square
#6C177D #7D3917 #287D17 #175B7D
split-complementary
#6C177D #5B7D17 #177D39
monochromatic
#16051A #3F0D49 #6C177D #9921B1 #BE35DA

Accessibility & contrast

On white

10.21
#6C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C177D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C177D#FFFFFF#000000##FFFFFF
##6C177D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c177d;
/* rgb */ color: rgb(108, 23, 125);
/* oklch */ color: oklch(39.7% 0.168 320.1);
Tailwind
colors: {
  custom: {
    50: '#9a60a3',
    500: '#6c177d',
    950: '#000000',
  },
}
SCSS
$custom: #6c177d;
$custom-light: #9a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c177d",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 290,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39744,
    "c": 0.16829,
    "h": 320.1
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#6C177D
secondary
#51B23E
accent
#EC3C59
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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