#6C168C#6C168C

#6C168C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.182 H 314.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#6C168C
RGBrgb(108, 22, 140)
HSLhsl(284, 73%, 32%)
HSVhsv(284, 84%, 55%)
CMYKcmyk(22.9%, 84.3%, 0%, 45.1%)
CIE-LABlab(28.53, 53.23, -46.20)
CIE-LCHlch(28.53, 70.48, 319.05°)
OKLaboklab(40.8% 0.1272 -0.1307)
OKLCHoklch(40.8% 0.182 314.2)
XYZxyz(11.2041, 5.6558, 25.3073)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C168C #368C16
analogous
#31168C #6C168C #8C1671
triadic
#6C168C #8C6C16 #168C6C
tetradic
#6C168C #8C3116 #368C16 #16718C
square
#6C168C #8C3116 #368C16 #16718C
split-complementary
#6C168C #718C16 #168C31
monochromatic
#1A0522 #430E57 #6C168C #951EC1 #B43CE0

Accessibility & contrast

On white

9.85
#6C168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6C168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C168C
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C168C#FFFFFF#000000##FFFFFF
##6C168C1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#07458A
Tritanopia (blue-blind)
#693453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c168c;
/* rgb */ color: rgb(108, 22, 140);
/* oklch */ color: oklch(40.8% 0.182 314.2);
Tailwind
colors: {
  custom: {
    50: '#9a60ae',
    500: '#6c168c',
    950: '#000000',
  },
}
SCSS
$custom: #6c168c;
$custom-light: #9a60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6c168c",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 283.729,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40798,
    "c": 0.18234,
    "h": 314.2
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#6C168C
secondary
#61C03E
accent
#F0386A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C168C

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

Preview Lab → · Contrast checker → · Palette generator →

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