#6C168D#6C168D

#6C168D is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.183 H 313.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#6C168D
RGBrgb(108, 22, 141)
HSLhsl(283, 73%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(23.4%, 84.4%, 0%, 44.7%)
CIE-LABlab(28.60, 53.44, -46.69)
CIE-LCHlch(28.60, 70.96, 318.85°)
OKLaboklab(40.88% 0.1269 -0.1321)
OKLCHoklch(40.88% 0.183 313.9)
XYZxyz(11.2781, 5.6854, 25.6974)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C168D #378D16
analogous
#30168D #6C168D #8D1673
triadic
#6C168D #8D6C16 #168D6C
tetradic
#6C168D #8D3016 #378D16 #16738D
square
#6C168D #8D3016 #378D16 #16738D
split-complementary
#6C168D #738D16 #168D30
monochromatic
#1B0523 #430E58 #6C168D #951EC2 #B33DE1

Accessibility & contrast

On white

9.83
#6C168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6C168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C168D
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C168D#FFFFFF#000000##FFFFFF
##6C168D1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#04458B
Tritanopia (blue-blind)
#693553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c168d;
/* rgb */ color: rgb(108, 22, 141);
/* oklch */ color: oklch(40.9% 0.183 313.9);
Tailwind
colors: {
  custom: {
    50: '#9b60af',
    500: '#6c168d',
    950: '#000000',
  },
}
SCSS
$custom: #6c168d;
$custom-light: #9b60af;
$custom-dark: #000000;
JSON
{
  "hex": "#6c168d",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 283.361,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40877,
    "c": 0.18323,
    "h": 313.9
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#6C168D
secondary
#62C13E
accent
#F0386B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C168D

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

Preview Lab → · Contrast checker → · Palette generator →

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