#6A177E#6A177E

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

Color values

HEX#6A177E
RGBrgb(106, 23, 126)
HSLhsl(288, 69%, 29%)
HSVhsv(288, 82%, 49%)
CMYKcmyk(15.9%, 81.7%, 0%, 50.6%)
CIE-LABlab(27.25, 49.73, -39.51)
CIE-LCHlch(27.25, 63.52, 321.54°)
OKLaboklab(39.51% 0.1265 -0.1111)
OKLCHoklch(39.51% 0.168 318.7)
XYZxyz(10.0156, 5.1838, 20.2076)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A177E #2B7E17
analogous
#37177E #6A177E #7E175F
triadic
#6A177E #7E6A17 #177E6A
tetradic
#6A177E #7E3717 #2B7E17 #175F7E
square
#6A177E #7E3717 #2B7E17 #175F7E
split-complementary
#6A177E #5F7E17 #177E37
monochromatic
#16051A #3E0E4A #6A177E #9620B2 #BA35DA

Accessibility & contrast

On white

10.31
#6A177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A177E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A177E#FFFFFF#000000##FFFFFF
##6A177E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#1E437C
Tritanopia (blue-blind)
#6A2E4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a177e;
/* rgb */ color: rgb(106, 23, 126);
/* oklch */ color: oklch(39.5% 0.168 318.7);
Tailwind
colors: {
  custom: {
    50: '#985fa4',
    500: '#6a177e',
    950: '#000000',
  },
}
SCSS
$custom: #6a177e;
$custom-light: #985fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a177e",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 288.35,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39507,
    "c": 0.16837,
    "h": 318.7
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#6A177E
secondary
#55B33E
accent
#EC3C5E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A177E

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

Preview Lab → · Contrast checker → · Palette generator →

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