#6A1785#6A1785

#6A1785 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.0% C 0.175 H 315.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#6A1785
RGBrgb(106, 23, 133)
HSLhsl(285, 71%, 31%)
HSVhsv(285, 83%, 52%)
CMYKcmyk(20.3%, 82.7%, 0%, 47.8%)
CIE-LABlab(27.77, 51.14, -43.08)
CIE-LCHlch(27.77, 66.87, 319.89°)
OKLaboklab(40.03% 0.1253 -0.1216)
OKLCHoklch(40.03% 0.175 315.8)
XYZxyz(10.4832, 5.3708, 22.6702)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1785 #328517
analogous
#331785 #6A1785 #851769
triadic
#6A1785 #856A17 #17856A
tetradic
#6A1785 #853317 #328517 #176985
square
#6A1785 #853317 #328517 #176985
split-complementary
#6A1785 #698517 #178533
monochromatic
#17051D #400E51 #6A1785 #9420B9 #B53ADD

Accessibility & contrast

On white

10.13
#6A1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#6A1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1785
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1785#FFFFFF#000000##FFFFFF
##6A17851.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#144483
Tritanopia (blue-blind)
#68314F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a1785;
/* rgb */ color: rgb(106, 23, 133);
/* oklch */ color: oklch(40.0% 0.175 315.8);
Tailwind
colors: {
  custom: {
    50: '#9960a9',
    500: '#6a1785',
    950: '#000000',
  },
}
SCSS
$custom: #6a1785;
$custom-light: #9960a9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1785",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 285.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40032,
    "c": 0.17458,
    "h": 315.8
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#6A1785
secondary
#5DB93F
accent
#ED3B66
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1785

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

Preview Lab → · Contrast checker → · Palette generator →

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