#6A168D#6A168D

#6A168D is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.183 H 312.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#6A168D
RGBrgb(106, 22, 141)
HSLhsl(282, 73%, 32%)
HSVhsv(282, 84%, 55%)
CMYKcmyk(24.8%, 84.4%, 0%, 44.7%)
CIE-LABlab(28.28, 53.09, -47.24)
CIE-LCHlch(28.28, 71.06, 318.34°)
OKLaboklab(40.58% 0.1242 -0.1338)
OKLCHoklch(40.58% 0.183 312.9)
XYZxyz(11.0376, 5.5614, 25.6862)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A168D #398D16
analogous
#2F168D #6A168D #8D1675
triadic
#6A168D #8D6A16 #168D6A
tetradic
#6A168D #8D2F16 #398D16 #16758D
square
#6A168D #8D2F16 #398D16 #16758D
split-complementary
#6A168D #758D16 #168D2F
monochromatic
#1A0523 #420E58 #6A168D #921EC2 #B03DE1

Accessibility & contrast

On white

9.94
#6A168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6A168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A168D
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A168D#FFFFFF#000000##FFFFFF
##6A168D1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a168d;
/* rgb */ color: rgb(106, 22, 141);
/* oklch */ color: oklch(40.6% 0.183 312.9);
Tailwind
colors: {
  custom: {
    50: '#9960af',
    500: '#6a168d',
    950: '#000000',
  },
}
SCSS
$custom: #6a168d;
$custom-light: #9960af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a168d",
  "rgb": {
    "r": 106,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 282.353,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40584,
    "c": 0.18259,
    "h": 312.9
  },
  "luminance": 0.05561
}

Semantic roles & 50–950 ramp

primary
#6A168D
secondary
#65C13E
accent
#F0386E
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A168D

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

Preview Lab → · Contrast checker → · Palette generator →

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