#6A187E#6A187E

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

Color values

HEX#6A187E
RGBrgb(106, 24, 126)
HSLhsl(288, 68%, 29%)
HSVhsv(288, 81%, 49%)
CMYKcmyk(15.9%, 81%, 0%, 50.6%)
CIE-LABlab(27.36, 49.41, -39.33)
CIE-LCHlch(27.36, 63.15, 321.48°)
OKLaboklab(39.59% 0.1257 -0.1106)
OKLCHoklch(39.59% 0.167 318.6)
XYZxyz(10.0359, 5.2243, 20.2144)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A187E #2C7E18
analogous
#37187E #6A187E #7E185F
triadic
#6A187E #7E6A18 #187E6A
tetradic
#6A187E #7E3718 #2C7E18 #185F7E
square
#6A187E #7E3718 #2C7E18 #185F7E
split-complementary
#6A187E #5F7E18 #187E37
monochromatic
#16051A #3F0E4B #6A187E #9522B1 #B937D9

Accessibility & contrast

On white

10.27
#6A187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A187E
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A187E#FFFFFF#000000##FFFFFF
##6A187E1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#1E437C
Tritanopia (blue-blind)
#6A2F4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a187e;
/* rgb */ color: rgb(106, 24, 126);
/* oklch */ color: oklch(39.6% 0.167 318.6);
Tailwind
colors: {
  custom: {
    50: '#9860a4',
    500: '#6a187e',
    950: '#000000',
  },
}
SCSS
$custom: #6a187e;
$custom-light: #9860a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a187e",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 288.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39587,
    "c": 0.16739,
    "h": 318.6
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#6A187E
secondary
#56B23F
accent
#EB3D5F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A187E

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

Preview Lab → · Contrast checker → · Palette generator →

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