#6B179F#6B179F

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

Color values

HEX#6B179F
RGBrgb(107, 23, 159)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 62%)
CMYKcmyk(32.7%, 85.5%, 0%, 37.6%)
CIE-LABlab(30.02, 56.78, -55.46)
CIE-LCHlch(30.02, 79.37, 315.68°)
OKLaboklab(42.28% 0.1199 -0.1579)
OKLCHoklch(42.28% 0.198 307.2)
XYZxyz(12.6265, 6.2420, 33.3338)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B179F #4B9F17
analogous
#27179F #6B179F #9F178F
triadic
#6B179F #9F6B17 #179F6B
tetradic
#6B179F #9F2717 #4B9F17 #178F9F
square
#6B179F #9F2717 #4B9F17 #178F9F
split-complementary
#6B179F #8F9F17 #179F27
monochromatic
#230834 #470F6A #6B179F #8F1FD4 #AA4BE5

Accessibility & contrast

On white

9.34
#6B179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6B179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B179F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B179F#FFFFFF#000000##FFFFFF
##6B179F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b179f;
/* rgb */ color: rgb(107, 23, 159);
/* oklch */ color: oklch(42.3% 0.198 307.2);
Tailwind
colors: {
  custom: {
    50: '#9b62bc',
    500: '#6b179f',
    950: '#000000',
  },
}
SCSS
$custom: #6b179f;
$custom-light: #9b62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b179f",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 277.059,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42283,
    "c": 0.1983,
    "h": 307.2
  },
  "luminance": 0.06242
}

Semantic roles & 50–950 ramp

primary
#6B179F
secondary
#7AC74B
accent
#F1367E
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B179F

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

Preview Lab → · Contrast checker → · Palette generator →

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