#6A187F#6A187F

#6A187F is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.7% C 0.168 H 318.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#6A187F
RGBrgb(106, 24, 127)
HSLhsl(288, 68%, 30%)
HSVhsv(288, 81%, 50%)
CMYKcmyk(16.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(27.44, 49.61, -39.84)
CIE-LCHlch(27.44, 63.63, 321.23°)
OKLaboklab(39.66% 0.1255 -0.1121)
OKLCHoklch(39.66% 0.168 318.2)
XYZxyz(10.1007, 5.2502, 20.5559)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A187F #2D7F18
analogous
#37187F #6A187F #7F1861
triadic
#6A187F #7F6A18 #187F6A
tetradic
#6A187F #7F3718 #2D7F18 #18617F
square
#6A187F #7F3718 #2D7F18 #18617F
split-complementary
#6A187F #617F18 #187F37
monochromatic
#15051A #3F0E4C #6A187F #9522B2 #B838D9

Accessibility & contrast

On white

10.24
#6A187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#6A187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A187F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A187F#FFFFFF#000000##FFFFFF
##6A187F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#1D437D
Tritanopia (blue-blind)
#692F4C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a187f;
/* rgb */ color: rgb(106, 24, 127);
/* oklch */ color: oklch(39.7% 0.168 318.2);
Tailwind
colors: {
  custom: {
    50: '#9860a5',
    500: '#6a187f',
    950: '#000000',
  },
}
SCSS
$custom: #6a187f;
$custom-light: #9860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a187f",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 287.767,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.16828,
    "h": 318.2
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

primary
#6A187F
secondary
#57B33F
accent
#EB3D60
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6A187F

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

Preview Lab → · Contrast checker → · Palette generator →

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