#6B176E#6B176E

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

Color values

HEX#6B176E
RGBrgb(107, 23, 110)
HSLhsl(298, 65%, 26%)
HSVhsv(298, 79%, 43%)
CMYKcmyk(2.7%, 79.1%, 0%, 56.9%)
CIE-LABlab(26.35, 46.91, -30.75)
CIE-LCHlch(26.35, 56.09, 326.76°)
OKLaboklab(38.56% 0.1293 -0.0855)
OKLCHoklch(38.56% 0.155 326.5)
XYZxyz(9.1841, 4.8650, 15.2041)
Luminance0.0486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B176E #1A6E17
analogous
#3F176E #6B176E #6E1745
triadic
#6B176E #6E6B17 #176E6B
tetradic
#6B176E #6E3F17 #1A6E17 #17456E
square
#6B176E #6E3F17 #1A6E17 #17456E
split-complementary
#6B176E #456E17 #176E3F
monochromatic
#190519 #3A0C3B #6B176E #9C22A1 #CD2CD3

Accessibility & contrast

On white

10.64
#6B176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#6B176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B176E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B176E#FFFFFF#000000##FFFFFF
##6B176E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003870
Deuteranopia (green-blind)
#2D426C
Tritanopia (blue-blind)
#6E2642
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6b176e;
/* rgb */ color: rgb(107, 23, 110);
/* oklch */ color: oklch(38.6% 0.155 326.5);
Tailwind
colors: {
  custom: {
    50: '#995f98',
    500: '#6b176e',
    950: '#000000',
  },
}
SCSS
$custom: #6b176e;
$custom-light: #995f98;
$custom-dark: #000000;
JSON
{
  "hex": "#6b176e",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 297.931,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.38555,
    "c": 0.15502,
    "h": 326.5
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#6B176E
secondary
#40A43D
accent
#E83F45
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6B176E

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

Preview Lab → · Contrast checker → · Palette generator →

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