#6B178D#6B178D

#6B178D is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.182 H 313.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#6B178D
RGBrgb(107, 23, 141)
HSLhsl(283, 72%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(24.1%, 83.7%, 0%, 44.7%)
CIE-LABlab(28.54, 52.96, -46.80)
CIE-LCHlch(28.54, 70.68, 318.54°)
OKLaboklab(40.8% 0.1249 -0.1325)
OKLCHoklch(40.8% 0.182 313.3)
XYZxyz(11.1767, 5.6620, 25.6983)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B178D #398D17
analogous
#30178D #6B178D #8D1774
triadic
#6B178D #8D6B17 #178D6B
tetradic
#6B178D #8D3017 #398D17 #17748D
square
#6B178D #8D3017 #398D17 #17748D
split-complementary
#6B178D #748D17 #178D30
monochromatic
#1B0624 #430E58 #6B178D #9320C2 #B13FE0

Accessibility & contrast

On white

9.85
#6B178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6B178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B178D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B178D#FFFFFF#000000##FFFFFF
##6B178D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#02458B
Tritanopia (blue-blind)
#673553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b178d;
/* rgb */ color: rgb(107, 23, 141);
/* oklch */ color: oklch(40.8% 0.182 313.3);
Tailwind
colors: {
  custom: {
    50: '#9a60af',
    500: '#6b178d',
    950: '#000000',
  },
}
SCSS
$custom: #6b178d;
$custom-light: #9a60af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b178d",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 282.712,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40801,
    "c": 0.18205,
    "h": 313.3
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#6B178D
secondary
#65C040
accent
#EF396D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B178D

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

Preview Lab → · Contrast checker → · Palette generator →

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