#6B167D#6B167D

#6B167D is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.169 H 319.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#6B167D
RGBrgb(107, 22, 125)
HSLhsl(290, 70%, 29%)
HSVhsv(290, 82%, 49%)
CMYKcmyk(14.4%, 82.4%, 0%, 51%)
CIE-LABlab(27.24, 50.05, -38.88)
CIE-LCHlch(27.24, 63.38, 322.16°)
OKLaboklab(39.51% 0.1288 -0.1092)
OKLCHoklch(39.51% 0.169 319.7)
XYZxyz(10.0515, 5.1808, 19.8686)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B167D #287D16
analogous
#38167D #6B167D #7D165C
triadic
#6B167D #7D6B16 #167D6B
tetradic
#6B167D #7D3816 #287D16 #165C7D
square
#6B167D #7D3816 #287D16 #165C7D
split-complementary
#6B167D #5C7D16 #167D38
monochromatic
#16051A #3E0D49 #6B167D #981FB1 #BE32DB

Accessibility & contrast

On white

10.31
#6B167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6B167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B167D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B167D#FFFFFF#000000##FFFFFF
##6B167D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#20437B
Tritanopia (blue-blind)
#6B2D4A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6b167d;
/* rgb */ color: rgb(107, 22, 125);
/* oklch */ color: oklch(39.5% 0.169 319.7);
Tailwind
colors: {
  custom: {
    50: '#995fa3',
    500: '#6b167d',
    950: '#000000',
  },
}
SCSS
$custom: #6b167d;
$custom-light: #995fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b167d",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 289.515,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39513,
    "c": 0.16884,
    "h": 319.7
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#6B167D
secondary
#51B23D
accent
#ED3B5A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B167D

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

Preview Lab → · Contrast checker → · Palette generator →

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