#6A168E#6A168E

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

Color values

HEX#6A168E
RGBrgb(106, 22, 142)
HSLhsl(282, 73%, 32%)
HSVhsv(282, 85%, 56%)
CMYKcmyk(25.4%, 84.5%, 0%, 44.3%)
CIE-LABlab(28.36, 53.30, -47.73)
CIE-LCHlch(28.36, 71.54, 318.15°)
OKLaboklab(40.66% 0.124 -0.1352)
OKLCHoklch(40.66% 0.183 312.5)
XYZxyz(11.1124, 5.5913, 26.0798)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A168E #3A8E16
analogous
#2E168E #6A168E #8E1676
triadic
#6A168E #8E6A16 #168E6A
tetradic
#6A168E #8E2E16 #3A8E16 #16768E
square
#6A168E #8E2E16 #3A8E16 #16768E
split-complementary
#6A168E #768E16 #168E2E
monochromatic
#1B0624 #420E59 #6A168E #921EC3 #B03DE1

Accessibility & contrast

On white

9.91
#6A168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6A168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A168E
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A168E#FFFFFF#000000##FFFFFF
##6A168E1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#663554
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a168e;
/* rgb */ color: rgb(106, 22, 142);
/* oklch */ color: oklch(40.7% 0.183 312.5);
Tailwind
colors: {
  custom: {
    50: '#9960b0',
    500: '#6a168e',
    950: '#000000',
  },
}
SCSS
$custom: #6a168e;
$custom-light: #9960b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a168e",
  "rgb": {
    "r": 106,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 282,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40664,
    "c": 0.18348,
    "h": 312.5
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#6A168E
secondary
#66C13F
accent
#F0386F
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #6A168E

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

Preview Lab → · Contrast checker → · Palette generator →

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