#6D178F#6D178F

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

Color values

HEX#6D178F
RGBrgb(109, 23, 143)
HSLhsl(283, 72%, 33%)
HSVhsv(283, 84%, 56%)
CMYKcmyk(23.8%, 83.9%, 0%, 43.9%)
CIE-LABlab(29.02, 53.73, -47.24)
CIE-LCHlch(29.02, 71.54, 318.68°)
OKLaboklab(41.25% 0.1271 -0.1337)
OKLCHoklch(41.25% 0.184 313.5)
XYZxyz(11.5701, 5.8476, 26.5005)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D178F #398F17
analogous
#31178F #6D178F #8F1775
triadic
#6D178F #8F6D17 #178F6D
tetradic
#6D178F #8F3117 #398F17 #17758F
square
#6D178F #8F3117 #398F17 #17758F
split-complementary
#6D178F #758F17 #178F31
monochromatic
#1D0626 #450F5A #6D178F #951FC4 #B340E0

Accessibility & contrast

On white

9.68
#6D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D178F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D178F#FFFFFF#000000##FFFFFF
##6D178F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#03468D
Tritanopia (blue-blind)
#693655
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d178f;
/* rgb */ color: rgb(109, 23, 143);
/* oklch */ color: oklch(41.3% 0.184 313.5);
Tailwind
colors: {
  custom: {
    50: '#9b61b1',
    500: '#6d178f',
    950: '#000000',
  },
}
SCSS
$custom: #6d178f;
$custom-light: #9b61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d178f",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 283,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41252,
    "c": 0.18449,
    "h": 313.5
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#6D178F
secondary
#65C141
accent
#EF396C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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