#6B178E#6B178E

#6B178E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.183 H 312.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#6B178E
RGBrgb(107, 23, 142)
HSLhsl(282, 72%, 32%)
HSVhsv(282, 84%, 56%)
CMYKcmyk(24.6%, 83.8%, 0%, 44.3%)
CIE-LABlab(28.62, 53.17, -47.29)
CIE-LCHlch(28.62, 71.16, 318.35°)
OKLaboklab(40.88% 0.1246 -0.1339)
OKLCHoklch(40.88% 0.183 312.9)
XYZxyz(11.2514, 5.6919, 26.0919)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B178E #3A8E17
analogous
#30178E #6B178E #8E1775
triadic
#6B178E #8E6B17 #178E6B
tetradic
#6B178E #8E3017 #3A8E17 #17758E
square
#6B178E #8E3017 #3A8E17 #17758E
split-complementary
#6B178E #758E17 #178E30
monochromatic
#1C0625 #430E59 #6B178E #9320C3 #B13FE0

Accessibility & contrast

On white

9.82
#6B178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6B178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B178E
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B178E#FFFFFF#000000##FFFFFF
##6B178E1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#673654
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b178e;
/* rgb */ color: rgb(107, 23, 142);
/* oklch */ color: oklch(40.9% 0.183 312.9);
Tailwind
colors: {
  custom: {
    50: '#9a61b0',
    500: '#6b178e',
    950: '#000000',
  },
}
SCSS
$custom: #6b178e;
$custom-light: #9a61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b178e",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 282.353,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40881,
    "c": 0.18295,
    "h": 312.9
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#6B178E
secondary
#66C040
accent
#EF396E
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6B178E

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

Preview Lab → · Contrast checker → · Palette generator →

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