#6D178C#6D178C

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

Color values

HEX#6D178C
RGBrgb(109, 23, 140)
HSLhsl(284, 72%, 32%)
HSVhsv(284, 84%, 55%)
CMYKcmyk(22.1%, 83.6%, 0%, 45.1%)
CIE-LABlab(28.79, 53.12, -45.76)
CIE-LCHlch(28.79, 70.11, 319.26°)
OKLaboklab(41.02% 0.1278 -0.1294)
OKLCHoklch(41.02% 0.182 314.6)
XYZxyz(11.3459, 5.7579, 25.3196)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D178C #368C17
analogous
#33178C #6D178C #8C1770
triadic
#6D178C #8C6D17 #178C6D
tetradic
#6D178C #8C3317 #368C17 #17708C
square
#6D178C #8C3317 #368C17 #17708C
split-complementary
#6D178C #708C17 #178C33
monochromatic
#1B0623 #440E57 #6D178C #9620C1 #B53EDF

Accessibility & contrast

On white

9.76
#6D178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D178C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D178C#FFFFFF#000000##FFFFFF
##6D178C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#0C468A
Tritanopia (blue-blind)
#6A3453
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d178c;
/* rgb */ color: rgb(109, 23, 140);
/* oklch */ color: oklch(41.0% 0.182 314.6);
Tailwind
colors: {
  custom: {
    50: '#9b61ae',
    500: '#6d178c',
    950: '#000000',
  },
}
SCSS
$custom: #6d178c;
$custom-light: #9b61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6d178c",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 284.103,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41017,
    "c": 0.18183,
    "h": 314.6
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#6D178C
secondary
#61BF3F
accent
#EF3969
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D178C

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

Preview Lab → · Contrast checker → · Palette generator →

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