#6D168E#6D168E

#6D168E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.1% C 0.184 H 314.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#6D168E
RGBrgb(109, 22, 142)
HSLhsl(284, 73%, 32%)
HSVhsv(284, 85%, 56%)
CMYKcmyk(23.2%, 84.5%, 0%, 44.3%)
CIE-LABlab(28.85, 53.82, -46.91)
CIE-LCHlch(28.85, 71.39, 318.92°)
OKLaboklab(41.1% 0.1281 -0.1327)
OKLCHoklch(41.1% 0.184 314)
XYZxyz(11.4752, 5.7784, 26.0968)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D168E #378E16
analogous
#31168E #6D168E #8E1673
triadic
#6D168E #8E6D16 #168E6D
tetradic
#6D168E #8E3116 #378E16 #16738E
square
#6D168E #8E3116 #378E16 #16738E
split-complementary
#6D168E #738E16 #168E31
monochromatic
#1C0624 #440E59 #6D168E #961EC3 #B43DE1

Accessibility & contrast

On white

9.74
#6D168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6D168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D168E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D168E#FFFFFF#000000##FFFFFF
##6D168E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#05468C
Tritanopia (blue-blind)
#6A3554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d168e;
/* rgb */ color: rgb(109, 22, 142);
/* oklch */ color: oklch(41.1% 0.184 314.0);
Tailwind
colors: {
  custom: {
    50: '#9b60b0',
    500: '#6d168e',
    950: '#000000',
  },
}
SCSS
$custom: #6d168e;
$custom-light: #9b60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d168e",
  "rgb": {
    "r": 109,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 283.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41103,
    "c": 0.18444,
    "h": 314
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#6D168E
secondary
#63C13F
accent
#F0386B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D168E

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

Preview Lab → · Contrast checker → · Palette generator →

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