#6A177D#6A177D

#6A177D is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.4% C 0.167 H 319.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#6A177D
RGBrgb(106, 23, 125)
HSLhsl(289, 69%, 29%)
HSVhsv(289, 82%, 49%)
CMYKcmyk(15.2%, 81.6%, 0%, 51%)
CIE-LABlab(27.18, 49.54, -38.99)
CIE-LCHlch(27.18, 63.04, 321.79°)
OKLaboklab(39.43% 0.1267 -0.1096)
OKLCHoklch(39.43% 0.167 319.1)
XYZxyz(9.9514, 5.1581, 19.8695)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A177D #2A7D17
analogous
#37177D #6A177D #7D175D
triadic
#6A177D #7D6A17 #177D6A
tetradic
#6A177D #7D3717 #2A7D17 #175D7D
square
#6A177D #7D3717 #2A7D17 #175D7D
split-complementary
#6A177D #5D7D17 #177D37
monochromatic
#16051A #3E0D49 #6A177D #9621B1 #BB35DA

Accessibility & contrast

On white

10.34
#6A177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#6A177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A177D
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A177D#FFFFFF#000000##FFFFFF
##6A177D1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#1F437B
Tritanopia (blue-blind)
#6A2E4A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a177d;
/* rgb */ color: rgb(106, 23, 125);
/* oklch */ color: oklch(39.4% 0.167 319.1);
Tailwind
colors: {
  custom: {
    50: '#985fa3',
    500: '#6a177d',
    950: '#000000',
  },
}
SCSS
$custom: #6a177d;
$custom-light: #985fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a177d",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 288.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.16749,
    "h": 319.1
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#6A177D
secondary
#54B23E
accent
#EC3C5D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A177D

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

Preview Lab → · Contrast checker → · Palette generator →

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