#6B177D#6B177D

#6B177D is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.6% C 0.168 H 319.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#6B177D
RGBrgb(107, 23, 125)
HSLhsl(289, 69%, 29%)
HSVhsv(289, 82%, 49%)
CMYKcmyk(14.4%, 81.6%, 0%, 51%)
CIE-LABlab(27.35, 49.74, -38.71)
CIE-LCHlch(27.35, 63.02, 322.11°)
OKLaboklab(39.59% 0.1279 -0.1087)
OKLCHoklch(39.59% 0.168 319.6)
XYZxyz(10.0710, 5.2198, 19.8751)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B177D #297D17
analogous
#38177D #6B177D #7D175C
triadic
#6B177D #7D6B17 #177D6B
tetradic
#6B177D #7D3817 #297D17 #175C7D
square
#6B177D #7D3817 #297D17 #175C7D
split-complementary
#6B177D #5C7D17 #177D38
monochromatic
#16051A #3F0D49 #6B177D #9721B1 #BD35DA

Accessibility & contrast

On white

10.27
#6B177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6B177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B177D
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B177D#FFFFFF#000000##FFFFFF
##6B177D1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#20437B
Tritanopia (blue-blind)
#6B2D4A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6b177d;
/* rgb */ color: rgb(107, 23, 125);
/* oklch */ color: oklch(39.6% 0.168 319.6);
Tailwind
colors: {
  custom: {
    50: '#9960a3',
    500: '#6b177d',
    950: '#000000',
  },
}
SCSS
$custom: #6b177d;
$custom-light: #9960a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b177d",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 289.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39589,
    "c": 0.16789,
    "h": 319.6
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#6B177D
secondary
#52B23E
accent
#EC3C5B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B177D

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

Preview Lab → · Contrast checker → · Palette generator →

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