#6A178E#6A178E

#6A178E is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.7% C 0.183 H 312.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#6A178E
RGBrgb(106, 23, 142)
HSLhsl(282, 72%, 32%)
HSVhsv(282, 84%, 56%)
CMYKcmyk(25.4%, 83.8%, 0%, 44.3%)
CIE-LABlab(28.46, 52.99, -47.56)
CIE-LCHlch(28.46, 71.21, 318.09°)
OKLaboklab(40.74% 0.1233 -0.1348)
OKLCHoklch(40.74% 0.183 312.5)
XYZxyz(11.1318, 5.6303, 26.0863)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A178E #3B8E17
analogous
#2F178E #6A178E #8E1776
triadic
#6A178E #8E6A17 #178E6A
tetradic
#6A178E #8E2F17 #3B8E17 #17768E
square
#6A178E #8E2F17 #3B8E17 #17768E
split-complementary
#6A178E #768E17 #178E2F
monochromatic
#1B0625 #430E59 #6A178E #9120C3 #AF3FE0

Accessibility & contrast

On white

9.88
#6A178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A178E
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A178E#FFFFFF#000000##FFFFFF
##6A178E1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#663654
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a178e;
/* rgb */ color: rgb(106, 23, 142);
/* oklch */ color: oklch(40.7% 0.183 312.5);
Tailwind
colors: {
  custom: {
    50: '#9960b0',
    500: '#6a178e',
    950: '#000000',
  },
}
SCSS
$custom: #6a178e;
$custom-light: #9960b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a178e",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 281.849,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40735,
    "c": 0.18264,
    "h": 312.5
  },
  "luminance": 0.0563
}

Semantic roles & 50–950 ramp

primary
#6A178E
secondary
#67C040
accent
#EF3970
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A178E

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

Preview Lab → · Contrast checker → · Palette generator →

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