#6A1789#6A1789

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

Color values

HEX#6A1789
RGBrgb(106, 23, 137)
HSLhsl(284, 71%, 31%)
HSVhsv(284, 83%, 54%)
CMYKcmyk(22.6%, 83.2%, 0%, 46.3%)
CIE-LABlab(28.07, 51.96, -45.09)
CIE-LCHlch(28.07, 68.79, 319.05°)
OKLaboklab(40.34% 0.1244 -0.1275)
OKLCHoklch(40.34% 0.178 314.3)
XYZxyz(10.7648, 5.4835, 24.1534)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1789 #368917
analogous
#311789 #6A1789 #89176F
triadic
#6A1789 #896A17 #17896A
tetradic
#6A1789 #893117 #368917 #176F89
square
#6A1789 #893117 #368917 #176F89
split-complementary
#6A1789 #6F8917 #178931
monochromatic
#190520 #410E55 #6A1789 #9320BD #B23CDE

Accessibility & contrast

On white

10.02
#6A1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6A1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1789
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1789#FFFFFF#000000##FFFFFF
##6A17891.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1789;
/* rgb */ color: rgb(106, 23, 137);
/* oklch */ color: oklch(40.3% 0.178 314.3);
Tailwind
colors: {
  custom: {
    50: '#9960ac',
    500: '#6a1789',
    950: '#000000',
  },
}
SCSS
$custom: #6a1789;
$custom-light: #9960ac;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1789",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 283.684,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4034,
    "c": 0.17815,
    "h": 314.3
  },
  "luminance": 0.05483
}

Semantic roles & 50–950 ramp

primary
#6A1789
secondary
#61BD3F
accent
#EE3A6B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1789

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

Preview Lab → · Contrast checker → · Palette generator →

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