#6B179E#6B179E

#6B179E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.2% C 0.197 H 307.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#6B179E
RGBrgb(107, 23, 158)
HSLhsl(277, 75%, 35%)
HSVhsv(277, 85%, 62%)
CMYKcmyk(32.3%, 85.4%, 0%, 38%)
CIE-LABlab(29.93, 56.57, -54.99)
CIE-LCHlch(29.93, 78.89, 315.81°)
OKLaboklab(42.2% 0.1202 -0.1565)
OKLCHoklch(42.2% 0.197 307.5)
XYZxyz(12.5400, 6.2074, 32.8787)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B179E #4A9E17
analogous
#27179E #6B179E #9E178E
triadic
#6B179E #9E6B17 #179E6B
tetradic
#6B179E #9E2717 #4A9E17 #178E9E
square
#6B179E #9E2717 #4A9E17 #178E9E
split-complementary
#6B179E #8E9E17 #179E27
monochromatic
#230733 #470F69 #6B179E #8F1FD3 #AB4BE5

Accessibility & contrast

On white

9.37
#6B179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B179E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B179E#FFFFFF#000000##FFFFFF
##6B179E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b179e;
/* rgb */ color: rgb(107, 23, 158);
/* oklch */ color: oklch(42.2% 0.197 307.5);
Tailwind
colors: {
  custom: {
    50: '#9b61bc',
    500: '#6b179e',
    950: '#000000',
  },
}
SCSS
$custom: #6b179e;
$custom-light: #9b61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b179e",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 277.333,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42198,
    "c": 0.19739,
    "h": 307.5
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#6B179E
secondary
#79C64A
accent
#F1377D
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B179E

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

Preview Lab → · Contrast checker → · Palette generator →

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