#6A167D#6A167D

#6A167D is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.4% C 0.168 H 319.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#6A167D
RGBrgb(106, 22, 125)
HSLhsl(289, 70%, 29%)
HSVhsv(289, 82%, 49%)
CMYKcmyk(15.2%, 82.4%, 0%, 51%)
CIE-LABlab(27.07, 49.85, -39.17)
CIE-LCHlch(27.07, 63.40, 321.84°)
OKLaboklab(39.36% 0.1275 -0.1101)
OKLCHoklch(39.36% 0.168 319.2)
XYZxyz(9.9320, 5.1192, 19.8630)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A167D #297D16
analogous
#37167D #6A167D #7D165D
triadic
#6A167D #7D6A16 #167D6A
tetradic
#6A167D #7D3716 #297D16 #165D7D
square
#6A167D #7D3716 #297D16 #165D7D
split-complementary
#6A167D #5D7D16 #167D37
monochromatic
#16051A #3E0D49 #6A167D #961FB1 #BC32DB

Accessibility & contrast

On white

10.38
#6A167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#6A167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A167D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A167D#FFFFFF#000000##FFFFFF
##6A167D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#1E437B
Tritanopia (blue-blind)
#6A2D4A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a167d;
/* rgb */ color: rgb(106, 22, 125);
/* oklch */ color: oklch(39.4% 0.168 319.2);
Tailwind
colors: {
  custom: {
    50: '#985fa3',
    500: '#6a167d',
    950: '#000000',
  },
}
SCSS
$custom: #6a167d;
$custom-light: #985fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a167d",
  "rgb": {
    "r": 106,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 288.932,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.16845,
    "h": 319.2
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#6A167D
secondary
#52B23D
accent
#ED3B5C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A167D

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

Preview Lab → · Contrast checker → · Palette generator →

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