#6B179D#6B179D

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

Color values

HEX#6B179D
RGBrgb(107, 23, 157)
HSLhsl(278, 74%, 35%)
HSVhsv(278, 85%, 62%)
CMYKcmyk(31.8%, 85.4%, 0%, 38.4%)
CIE-LABlab(29.84, 56.35, -54.52)
CIE-LCHlch(29.84, 78.41, 315.95°)
OKLaboklab(42.11% 0.1205 -0.1552)
OKLCHoklch(42.11% 0.196 307.8)
XYZxyz(12.4543, 6.1731, 32.4272)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B179D #499D17
analogous
#28179D #6B179D #9D178C
triadic
#6B179D #9D6B17 #179D6B
tetradic
#6B179D #9D2817 #499D17 #178C9D
square
#6B179D #9D2817 #499D17 #178C9D
split-complementary
#6B179D #8C9D17 #179D28
monochromatic
#220732 #470F68 #6B179D #8F1FD2 #AB4AE4

Accessibility & contrast

On white

9.40
#6B179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B179D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B179D#FFFFFF#000000##FFFFFF
##6B179D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#633D5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b179d;
/* rgb */ color: rgb(107, 23, 157);
/* oklch */ color: oklch(42.1% 0.196 307.8);
Tailwind
colors: {
  custom: {
    50: '#9b61bb',
    500: '#6b179d',
    950: '#000000',
  },
}
SCSS
$custom: #6b179d;
$custom-light: #9b61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b179d",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 277.612,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42113,
    "c": 0.19648,
    "h": 307.8
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#6B179D
secondary
#78C64A
accent
#F1377C
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B179D

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

Preview Lab → · Contrast checker → · Palette generator →

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