#6A1778#6A1778

#6A1778 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 39.1% C 0.163 H 321.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#6A1778
RGBrgb(106, 23, 120)
HSLhsl(291, 68%, 28%)
HSVhsv(291, 81%, 47%)
CMYKcmyk(11.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(26.83, 48.56, -36.39)
CIE-LCHlch(26.83, 60.68, 323.16°)
OKLaboklab(39.07% 0.1273 -0.102)
OKLCHoklch(39.07% 0.163 321.3)
XYZxyz(9.6400, 5.0336, 18.2295)
Luminance0.0503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1778 #257817
analogous
#391778 #6A1778 #781755
triadic
#6A1778 #786A17 #17786A
tetradic
#6A1778 #783917 #257817 #175578
square
#6A1778 #783917 #257817 #175578
split-complementary
#6A1778 #557817 #177839
monochromatic
#17051A #3D0D45 #6A1778 #9721AB #C032D8

Accessibility & contrast

On white

10.47
#6A1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#6A1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1778
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1778#FFFFFF#000000##FFFFFF
##6A17781.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#244276
Tritanopia (blue-blind)
#6B2B47
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6a1778;
/* rgb */ color: rgb(106, 23, 120);
/* oklch */ color: oklch(39.1% 0.163 321.3);
Tailwind
colors: {
  custom: {
    50: '#985f9f',
    500: '#6a1778',
    950: '#000000',
  },
}
SCSS
$custom: #6a1778;
$custom-light: #985f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1778",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 291.34,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.39075,
    "c": 0.16311,
    "h": 321.3
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#6A1778
secondary
#4EAD3E
accent
#EB3D56
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1778

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

Preview Lab → · Contrast checker → · Palette generator →

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