#6A179F#6A179F

#6A179F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.198 H 306.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#6A179F
RGBrgb(106, 23, 159)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 62%)
CMYKcmyk(33.3%, 85.5%, 0%, 37.6%)
CIE-LABlab(29.86, 56.63, -55.71)
CIE-LCHlch(29.86, 79.44, 315.47°)
OKLaboklab(42.15% 0.1185 -0.1587)
OKLCHoklch(42.15% 0.198 306.7)
XYZxyz(12.5069, 6.1803, 33.3282)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A179F #4C9F17
analogous
#26179F #6A179F #9F1790
triadic
#6A179F #9F6A17 #179F6A
tetradic
#6A179F #9F2617 #4C9F17 #17909F
square
#6A179F #9F2617 #4C9F17 #17909F
split-complementary
#6A179F #909F17 #179F26
monochromatic
#230834 #460F6A #6A179F #8E1FD4 #A94BE5

Accessibility & contrast

On white

9.39
#6A179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6A179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A179F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A179F#FFFFFF#000000##FFFFFF
##6A179F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#613E5E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a179f;
/* rgb */ color: rgb(106, 23, 159);
/* oklch */ color: oklch(42.1% 0.198 306.7);
Tailwind
colors: {
  custom: {
    50: '#9a61bc',
    500: '#6a179f',
    950: '#000000',
  },
}
SCSS
$custom: #6a179f;
$custom-light: #9a61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a179f",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 276.618,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42147,
    "c": 0.19806,
    "h": 306.7
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#6A179F
secondary
#7BC74B
accent
#F1367F
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A179F

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

Preview Lab → · Contrast checker → · Palette generator →

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