#6A179E#6A179E

#6A179E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 42.1% C 0.197 H 307.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#6A179E
RGBrgb(106, 23, 158)
HSLhsl(277, 75%, 35%)
HSVhsv(277, 85%, 62%)
CMYKcmyk(32.9%, 85.4%, 0%, 38%)
CIE-LABlab(29.78, 56.41, -55.24)
CIE-LCHlch(29.78, 78.96, 315.60°)
OKLaboklab(42.06% 0.1188 -0.1573)
OKLCHoklch(42.06% 0.197 307.1)
XYZxyz(12.4205, 6.1457, 32.8730)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A179E #4B9E17
analogous
#26179E #6A179E #9E178E
triadic
#6A179E #9E6A17 #179E6A
tetradic
#6A179E #9E2617 #4B9E17 #178E9E
square
#6A179E #9E2617 #4B9E17 #178E9E
split-complementary
#6A179E #8E9E17 #179E26
monochromatic
#220733 #460F69 #6A179E #8E1FD3 #A94BE5

Accessibility & contrast

On white

9.42
#6A179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6A179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A179E
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A179E#FFFFFF#000000##FFFFFF
##6A179E1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#613D5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a179e;
/* rgb */ color: rgb(106, 23, 158);
/* oklch */ color: oklch(42.1% 0.197 307.1);
Tailwind
colors: {
  custom: {
    50: '#9a61bc',
    500: '#6a179e',
    950: '#000000',
  },
}
SCSS
$custom: #6a179e;
$custom-light: #9a61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a179e",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 276.889,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42061,
    "c": 0.19715,
    "h": 307.1
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#6A179E
secondary
#7AC64A
accent
#F1377E
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A179E

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

Preview Lab → · Contrast checker → · Palette generator →

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