#6A1788#6A1788

#6A1788 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.3% C 0.177 H 314.7°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#6A1788
RGBrgb(106, 23, 136)
HSLhsl(284, 71%, 31%)
HSVhsv(284, 83%, 53%)
CMYKcmyk(22.1%, 83.1%, 0%, 46.7%)
CIE-LABlab(27.99, 51.75, -44.59)
CIE-LCHlch(27.99, 68.31, 319.25°)
OKLaboklab(40.26% 0.1246 -0.126)
OKLCHoklch(40.26% 0.177 314.7)
XYZxyz(10.6934, 5.4549, 23.7774)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1788 #358817
analogous
#311788 #6A1788 #88176D
triadic
#6A1788 #886A17 #17886A
tetradic
#6A1788 #883117 #358817 #176D88
square
#6A1788 #883117 #358817 #176D88
split-complementary
#6A1788 #6D8817 #178831
monochromatic
#18051F #410E54 #6A1788 #9320BC #B33BDE

Accessibility & contrast

On white

10.04
#6A1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#6A1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1788
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1788#FFFFFF#000000##FFFFFF
##6A17881.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#0D4486
Tritanopia (blue-blind)
#673351
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a1788;
/* rgb */ color: rgb(106, 23, 136);
/* oklch */ color: oklch(40.3% 0.177 314.7);
Tailwind
colors: {
  custom: {
    50: '#9960ab',
    500: '#6a1788',
    950: '#000000',
  },
}
SCSS
$custom: #6a1788;
$custom-light: #9960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1788",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 284.071,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40263,
    "c": 0.17725,
    "h": 314.7
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#6A1788
secondary
#60BC3F
accent
#EE3A6A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1788

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

Preview Lab → · Contrast checker → · Palette generator →

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