#6A178A#6A178A

#6A178A is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.179 H 313.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#6A178A
RGBrgb(106, 23, 138)
HSLhsl(283, 71%, 32%)
HSVhsv(283, 83%, 54%)
CMYKcmyk(23.2%, 83.3%, 0%, 45.9%)
CIE-LABlab(28.15, 52.16, -45.59)
CIE-LCHlch(28.15, 69.27, 318.85°)
OKLaboklab(40.42% 0.1242 -0.1289)
OKLCHoklch(40.42% 0.179 313.9)
XYZxyz(10.8369, 5.5123, 24.5330)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A178A #378A17
analogous
#30178A #6A178A #8A1771
triadic
#6A178A #8A6A17 #178A6A
tetradic
#6A178A #8A3017 #378A17 #17718A
square
#6A178A #8A3017 #378A17 #17718A
split-complementary
#6A178A #718A17 #178A30
monochromatic
#190621 #420E56 #6A178A #9220BE #B23DDF

Accessibility & contrast

On white

9.99
#6A178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6A178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A178A
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A178A#FFFFFF#000000##FFFFFF
##6A178A1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#084488
Tritanopia (blue-blind)
#673452
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a178a;
/* rgb */ color: rgb(106, 23, 138);
/* oklch */ color: oklch(40.4% 0.179 313.9);
Tailwind
colors: {
  custom: {
    50: '#9960ad',
    500: '#6a178a',
    950: '#000000',
  },
}
SCSS
$custom: #6a178a;
$custom-light: #9960ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a178a",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 283.304,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40419,
    "c": 0.17904,
    "h": 313.9
  },
  "luminance": 0.05512
}

Semantic roles & 50–950 ramp

primary
#6A178A
secondary
#62BE3F
accent
#EE3A6C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A178A

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

Preview Lab → · Contrast checker → · Palette generator →

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