#6A179D#6A179D

#6A179D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 42.0% C 0.196 H 307.4°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#6A179D
RGBrgb(106, 23, 157)
HSLhsl(277, 74%, 35%)
HSVhsv(277, 85%, 62%)
CMYKcmyk(32.5%, 85.4%, 0%, 38.4%)
CIE-LABlab(29.69, 56.20, -54.77)
CIE-LCHlch(29.69, 78.47, 315.73°)
OKLaboklab(41.98% 0.1191 -0.1559)
OKLCHoklch(41.98% 0.196 307.4)
XYZxyz(12.3347, 6.1115, 32.4216)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A179D #4A9D17
analogous
#27179D #6A179D #9D178D
triadic
#6A179D #9D6A17 #179D6A
tetradic
#6A179D #9D2717 #4A9D17 #178D9D
square
#6A179D #9D2717 #4A9D17 #178D9D
split-complementary
#6A179D #8D9D17 #179D27
monochromatic
#220732 #460F68 #6A179D #8E1FD2 #AA4AE4

Accessibility & contrast

On white

9.45
#6A179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6A179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A179D
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A179D#FFFFFF#000000##FFFFFF
##6A179D1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#613D5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a179d;
/* rgb */ color: rgb(106, 23, 157);
/* oklch */ color: oklch(42.0% 0.196 307.4);
Tailwind
colors: {
  custom: {
    50: '#9a61bb',
    500: '#6a179d',
    950: '#000000',
  },
}
SCSS
$custom: #6a179d;
$custom-light: #9a61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a179d",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 277.164,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41975,
    "c": 0.19623,
    "h": 307.4
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#6A179D
secondary
#79C64A
accent
#F1377E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A179D

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

Preview Lab → · Contrast checker → · Palette generator →

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