#6A187D#6A187D

#6A187D is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.167 H 319.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#6A187D
RGBrgb(106, 24, 125)
HSLhsl(289, 68%, 29%)
HSVhsv(289, 81%, 49%)
CMYKcmyk(15.2%, 80.8%, 0%, 51%)
CIE-LABlab(27.29, 49.21, -38.81)
CIE-LCHlch(27.29, 62.67, 321.74°)
OKLaboklab(39.51% 0.1258 -0.1091)
OKLCHoklch(39.51% 0.167 319.1)
XYZxyz(9.9717, 5.1986, 19.8762)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A187D #2B7D18
analogous
#38187D #6A187D #7D185E
triadic
#6A187D #7D6A18 #187D6A
tetradic
#6A187D #7D3818 #2B7D18 #185E7D
square
#6A187D #7D3818 #2B7D18 #185E7D
split-complementary
#6A187D #5E7D18 #187D38
monochromatic
#16051A #3E0E4A #6A187D #9622B0 #BA37D9

Accessibility & contrast

On white

10.30
#6A187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6A187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A187D
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A187D#FFFFFF#000000##FFFFFF
##6A187D1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a187d;
/* rgb */ color: rgb(106, 24, 125);
/* oklch */ color: oklch(39.5% 0.167 319.1);
Tailwind
colors: {
  custom: {
    50: '#9860a3',
    500: '#6a187d',
    950: '#000000',
  },
}
SCSS
$custom: #6a187d;
$custom-light: #9860a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a187d",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 288.713,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39514,
    "c": 0.1665,
    "h": 319.1
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#6A187D
secondary
#55B23F
accent
#EB3D5E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A187D

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

Preview Lab → · Contrast checker → · Palette generator →

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