#6A178D#6A178D

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

Color values

HEX#6A178D
RGBrgb(106, 23, 141)
HSLhsl(282, 72%, 32%)
HSVhsv(282, 84%, 55%)
CMYKcmyk(24.8%, 83.7%, 0%, 44.7%)
CIE-LABlab(28.38, 52.79, -47.07)
CIE-LCHlch(28.38, 70.72, 318.28°)
OKLaboklab(40.66% 0.1235 -0.1333)
OKLCHoklch(40.66% 0.182 312.8)
XYZxyz(11.0571, 5.6004, 25.6927)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A178D #3A8D17
analogous
#2F178D #6A178D #8D1775
triadic
#6A178D #8D6A17 #178D6A
tetradic
#6A178D #8D2F17 #3A8D17 #17758D
square
#6A178D #8D2F17 #3A8D17 #17758D
split-complementary
#6A178D #758D17 #178D2F
monochromatic
#1B0624 #420E58 #6A178D #9220C2 #B03FE0

Accessibility & contrast

On white

9.91
#6A178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6A178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A178D
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A178D#FFFFFF#000000##FFFFFF
##6A178D1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a178d;
/* rgb */ color: rgb(106, 23, 141);
/* oklch */ color: oklch(40.7% 0.182 312.8);
Tailwind
colors: {
  custom: {
    50: '#9960af',
    500: '#6a178d',
    950: '#000000',
  },
}
SCSS
$custom: #6a178d;
$custom-light: #9960af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a178d",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 282.203,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.18174,
    "h": 312.8
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#6A178D
secondary
#66C040
accent
#EF396F
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A178D

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

Preview Lab → · Contrast checker → · Palette generator →

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