#6A178C#6A178C

#6A178C is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.181 H 313.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#6A178C
RGBrgb(106, 23, 140)
HSLhsl(283, 72%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(24.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(28.30, 52.58, -46.58)
CIE-LCHlch(28.30, 70.24, 318.46°)
OKLaboklab(40.58% 0.1238 -0.1319)
OKLCHoklch(40.58% 0.181 313.2)
XYZxyz(10.9830, 5.5708, 25.3026)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A178C #398C17
analogous
#30178C #6A178C #8C1774
triadic
#6A178C #8C6A17 #178C6A
tetradic
#6A178C #8C3017 #398C17 #17748C
square
#6A178C #8C3017 #398C17 #17748C
split-complementary
#6A178C #748C17 #178C30
monochromatic
#1A0623 #420E57 #6A178C #9220C1 #B03EDF

Accessibility & contrast

On white

9.93
#6A178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6A178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A178C
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A178C#FFFFFF#000000##FFFFFF
##6A178C1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#02448A
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a178c;
/* rgb */ color: rgb(106, 23, 140);
/* oklch */ color: oklch(40.6% 0.181 313.2);
Tailwind
colors: {
  custom: {
    50: '#9960ae',
    500: '#6a178c',
    950: '#000000',
  },
}
SCSS
$custom: #6a178c;
$custom-light: #9960ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a178c",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 282.564,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40576,
    "c": 0.18084,
    "h": 313.2
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#6A178C
secondary
#65BF3F
accent
#EF396E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A178C

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

Preview Lab → · Contrast checker → · Palette generator →

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