#6A177F#6A177F

#6A177F is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.6% C 0.169 H 318.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#6A177F
RGBrgb(106, 23, 127)
HSLhsl(288, 69%, 29%)
HSVhsv(288, 82%, 50%)
CMYKcmyk(16.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(27.32, 49.93, -40.02)
CIE-LCHlch(27.32, 63.99, 321.29°)
OKLaboklab(39.58% 0.1263 -0.1126)
OKLCHoklch(39.58% 0.169 318.3)
XYZxyz(10.0805, 5.2097, 20.5492)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A177F #2C7F17
analogous
#36177F #6A177F #7F1760
triadic
#6A177F #7F6A17 #177F6A
tetradic
#6A177F #7F3617 #2C7F17 #17607F
square
#6A177F #7F3617 #2C7F17 #17607F
split-complementary
#6A177F #607F17 #177F36
monochromatic
#16051A #3F0E4B #6A177F #9520B3 #B936DB

Accessibility & contrast

On white

10.29
#6A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6A177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A177F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A177F#FFFFFF#000000##FFFFFF
##6A177F1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#1C437D
Tritanopia (blue-blind)
#692F4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a177f;
/* rgb */ color: rgb(106, 23, 127);
/* oklch */ color: oklch(39.6% 0.169 318.3);
Tailwind
colors: {
  custom: {
    50: '#9860a5',
    500: '#6a177f',
    950: '#000000',
  },
}
SCSS
$custom: #6a177f;
$custom-light: #9860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a177f",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 287.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39581,
    "c": 0.16925,
    "h": 318.3
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#6A177F
secondary
#56B43E
accent
#EC3C5F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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