#6A1780#6A1780

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

Color values

HEX#6A1780
RGBrgb(106, 23, 128)
HSLhsl(287, 70%, 30%)
HSVhsv(287, 82%, 50%)
CMYKcmyk(17.2%, 82%, 0%, 49.8%)
CIE-LABlab(27.40, 50.13, -40.54)
CIE-LCHlch(27.40, 64.47, 321.04°)
OKLaboklab(39.66% 0.1262 -0.1141)
OKLCHoklch(39.66% 0.17 317.9)
XYZxyz(10.1460, 5.2359, 20.8941)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1780 #2D8017
analogous
#361780 #6A1780 #801761
triadic
#6A1780 #806A17 #17806A
tetradic
#6A1780 #803617 #2D8017 #176180
square
#6A1780 #803617 #2D8017 #176180
split-complementary
#6A1780 #618017 #178036
monochromatic
#15051A #3F0E4C #6A1780 #9520B4 #B836DB

Accessibility & contrast

On white

10.26
#6A1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1780
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1780#FFFFFF#000000##FFFFFF
##6A17801.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1780;
/* rgb */ color: rgb(106, 23, 128);
/* oklch */ color: oklch(39.7% 0.170 317.9);
Tailwind
colors: {
  custom: {
    50: '#9860a5',
    500: '#6a1780',
    950: '#000000',
  },
}
SCSS
$custom: #6a1780;
$custom-light: #9860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1780",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 287.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39655,
    "c": 0.17013,
    "h": 317.9
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#6A1780
secondary
#57B43E
accent
#EC3B61
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A1780

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

Preview Lab → · Contrast checker → · Palette generator →

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