#6B167E#6B167E

#6B167E is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.6% C 0.170 H 319.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#6B167E
RGBrgb(107, 22, 126)
HSLhsl(289, 70%, 29%)
HSVhsv(289, 83%, 49%)
CMYKcmyk(15.1%, 82.5%, 0%, 50.6%)
CIE-LABlab(27.32, 50.25, -39.40)
CIE-LCHlch(27.32, 63.85, 321.90°)
OKLaboklab(39.59% 0.1286 -0.1107)
OKLCHoklch(39.59% 0.17 319.3)
XYZxyz(10.1157, 5.2065, 20.2067)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B167E #297E16
analogous
#37167E #6B167E #7E165D
triadic
#6B167E #7E6B16 #167E6B
tetradic
#6B167E #7E3716 #297E16 #165D7E
square
#6B167E #7E3716 #297E16 #165D7E
split-complementary
#6B167E #5D7E16 #167E37
monochromatic
#16051A #3F0D4A #6B167E #971FB2 #BD33DB

Accessibility & contrast

On white

10.29
#6B167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B167E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B167E#FFFFFF#000000##FFFFFF
##6B167E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#1F437C
Tritanopia (blue-blind)
#6B2D4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6b167e;
/* rgb */ color: rgb(107, 22, 126);
/* oklch */ color: oklch(39.6% 0.170 319.3);
Tailwind
colors: {
  custom: {
    50: '#995fa4',
    500: '#6b167e',
    950: '#000000',
  },
}
SCSS
$custom: #6b167e;
$custom-light: #995fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b167e",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 289.038,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39585,
    "c": 0.16971,
    "h": 319.3
  },
  "luminance": 0.05206
}

Semantic roles & 50–950 ramp

primary
#6B167E
secondary
#52B33D
accent
#ED3B5B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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