#6D178D#6D178D

#6D178D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.1% C 0.183 H 314.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#6D178D
RGBrgb(109, 23, 141)
HSLhsl(284, 72%, 32%)
HSVhsv(284, 84%, 55%)
CMYKcmyk(22.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(28.87, 53.32, -46.25)
CIE-LCHlch(28.87, 70.59, 319.06°)
OKLaboklab(41.1% 0.1276 -0.1308)
OKLCHoklch(41.1% 0.183 314.3)
XYZxyz(11.4200, 5.7875, 25.7097)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D178D #378D17
analogous
#32178D #6D178D #8D1772
triadic
#6D178D #8D6D17 #178D6D
tetradic
#6D178D #8D3217 #378D17 #17728D
square
#6D178D #8D3217 #378D17 #17728D
split-complementary
#6D178D #728D17 #178D32
monochromatic
#1C0624 #440E58 #6D178D #9620C2 #B43FE0

Accessibility & contrast

On white

9.73
#6D178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6D178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D178D
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D178D#FFFFFF#000000##FFFFFF
##6D178D1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#09468B
Tritanopia (blue-blind)
#6A3554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d178d;
/* rgb */ color: rgb(109, 23, 141);
/* oklch */ color: oklch(41.1% 0.183 314.3);
Tailwind
colors: {
  custom: {
    50: '#9b61af',
    500: '#6d178d',
    950: '#000000',
  },
}
SCSS
$custom: #6d178d;
$custom-light: #9b61af;
$custom-dark: #000000;
JSON
{
  "hex": "#6d178d",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 283.729,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41095,
    "c": 0.18271,
    "h": 314.3
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#6D178D
secondary
#63C040
accent
#EF396A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D178D

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

Preview Lab → · Contrast checker → · Palette generator →

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