#6A178F#6A178F

#6A178F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.184 H 312.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#6A178F
RGBrgb(106, 23, 143)
HSLhsl(282, 72%, 33%)
HSVhsv(282, 84%, 56%)
CMYKcmyk(25.9%, 83.9%, 0%, 43.9%)
CIE-LABlab(28.54, 53.20, -48.05)
CIE-LCHlch(28.54, 71.69, 317.91°)
OKLaboklab(40.82% 0.123 -0.1362)
OKLCHoklch(40.82% 0.184 312.1)
XYZxyz(11.2073, 5.6605, 26.4835)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A178F #3C8F17
analogous
#2E178F #6A178F #8F1778
triadic
#6A178F #8F6A17 #178F6A
tetradic
#6A178F #8F2E17 #3C8F17 #17788F
square
#6A178F #8F2E17 #3C8F17 #17788F
split-complementary
#6A178F #788F17 #178F2E
monochromatic
#1C0626 #430F5A #6A178F #911FC4 #AF40E0

Accessibility & contrast

On white

9.85
#6A178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A178F
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A178F#FFFFFF#000000##FFFFFF
##6A178F1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#653655
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a178f;
/* rgb */ color: rgb(106, 23, 143);
/* oklch */ color: oklch(40.8% 0.184 312.1);
Tailwind
colors: {
  custom: {
    50: '#9960b1',
    500: '#6a178f',
    950: '#000000',
  },
}
SCSS
$custom: #6a178f;
$custom-light: #9960b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a178f",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 281.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40815,
    "c": 0.18353,
    "h": 312.1
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#6A178F
secondary
#68C141
accent
#EF3971
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #6A178F

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

Preview Lab → · Contrast checker → · Palette generator →

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