#6C168E#6C168E

#6C168E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 41.0% C 0.184 H 313.5°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#6C168E
RGBrgb(108, 22, 142)
HSLhsl(283, 73%, 32%)
HSVhsv(283, 85%, 56%)
CMYKcmyk(23.9%, 84.5%, 0%, 44.3%)
CIE-LABlab(28.68, 53.64, -47.19)
CIE-LCHlch(28.68, 71.44, 318.66°)
OKLaboklab(40.96% 0.1267 -0.1336)
OKLCHoklch(40.96% 0.184 313.5)
XYZxyz(11.3529, 5.7153, 26.0911)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C168E #388E16
analogous
#30168E #6C168E #8E1674
triadic
#6C168E #8E6C16 #168E6C
tetradic
#6C168E #8E3016 #388E16 #16748E
square
#6C168E #8E3016 #388E16 #16748E
split-complementary
#6C168E #748E16 #168E30
monochromatic
#1B0624 #440E59 #6C168E #941EC3 #B33DE1

Accessibility & contrast

On white

9.80
#6C168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C168E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C168E#FFFFFF#000000##FFFFFF
##6C168E1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#01458C
Tritanopia (blue-blind)
#683554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c168e;
/* rgb */ color: rgb(108, 22, 142);
/* oklch */ color: oklch(41.0% 0.184 313.5);
Tailwind
colors: {
  custom: {
    50: '#9b60b0',
    500: '#6c168e',
    950: '#000000',
  },
}
SCSS
$custom: #6c168e;
$custom-light: #9b60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c168e",
  "rgb": {
    "r": 108,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 283,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40956,
    "c": 0.18412,
    "h": 313.5
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#6C168E
secondary
#64C13F
accent
#F0386C
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C168E

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

Preview Lab → · Contrast checker → · Palette generator →

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