#6D178E#6D178E

#6D178E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.2% C 0.184 H 313.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#6D178E
RGBrgb(109, 23, 142)
HSLhsl(283, 72%, 32%)
HSVhsv(283, 84%, 56%)
CMYKcmyk(23.2%, 83.8%, 0%, 44.3%)
CIE-LABlab(28.95, 53.52, -46.75)
CIE-LCHlch(28.95, 71.07, 318.87°)
OKLaboklab(41.17% 0.1273 -0.1323)
OKLCHoklch(41.17% 0.184 313.9)
XYZxyz(11.4947, 5.8174, 26.1033)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D178E #388E17
analogous
#31178E #6D178E #8E1774
triadic
#6D178E #8E6D17 #178E6D
tetradic
#6D178E #8E3117 #388E17 #17748E
square
#6D178E #8E3117 #388E17 #17748E
split-complementary
#6D178E #748E17 #178E31
monochromatic
#1C0625 #450E59 #6D178E #9520C3 #B33FE0

Accessibility & contrast

On white

9.71
#6D178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D178E
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D178E#FFFFFF#000000##FFFFFF
##6D178E1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#06468C
Tritanopia (blue-blind)
#6A3554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d178e;
/* rgb */ color: rgb(109, 23, 142);
/* oklch */ color: oklch(41.2% 0.184 313.9);
Tailwind
colors: {
  custom: {
    50: '#9b61b0',
    500: '#6d178e',
    950: '#000000',
  },
}
SCSS
$custom: #6d178e;
$custom-light: #9b61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d178e",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 283.361,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41173,
    "c": 0.1836,
    "h": 313.9
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#6D178E
secondary
#64C040
accent
#EF396B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D178E

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

Preview Lab → · Contrast checker → · Palette generator →

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