#6B176F#6B176F

#6B176F is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.6% C 0.156 H 326.0°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#6B176F
RGBrgb(107, 23, 111)
HSLhsl(297, 66%, 26%)
HSVhsv(297, 79%, 44%)
CMYKcmyk(3.6%, 79.3%, 0%, 56.5%)
CIE-LABlab(26.41, 47.09, -31.29)
CIE-LCHlch(26.41, 56.54, 326.40°)
OKLaboklab(38.62% 0.1293 -0.087)
OKLCHoklch(38.62% 0.156 326)
XYZxyz(9.2389, 4.8869, 15.4925)
Luminance0.0489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B176F #1B6F17
analogous
#3F176F #6B176F #6F1747
triadic
#6B176F #6F6B17 #176F6B
tetradic
#6B176F #6F3F17 #1B6F17 #17476F
square
#6B176F #6F3F17 #1B6F17 #17476F
split-complementary
#6B176F #476F17 #176F3F
monochromatic
#180519 #3A0C3C #6B176F #9C22A2 #CC2DD3

Accessibility & contrast

On white

10.62
#6B176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#6B176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B176F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B176F#FFFFFF#000000##FFFFFF
##6B176F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#2C426D
Tritanopia (blue-blind)
#6E2742
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6b176f;
/* rgb */ color: rgb(107, 23, 111);
/* oklch */ color: oklch(38.6% 0.156 326.0);
Tailwind
colors: {
  custom: {
    50: '#995f99',
    500: '#6b176f',
    950: '#000000',
  },
}
SCSS
$custom: #6b176f;
$custom-light: #995f99;
$custom-dark: #000000;
JSON
{
  "hex": "#6b176f",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 297.273,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3862,
    "c": 0.15585,
    "h": 326
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#6B176F
secondary
#42A53D
accent
#E93F47
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6B176F

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

Preview Lab → · Contrast checker → · Palette generator →

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