#6C17A1#6C17A1

#6C17A1 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.6% C 0.200 H 307.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6C17A1
RGBrgb(108, 23, 161)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 63%)
CMYKcmyk(32.9%, 85.7%, 0%, 36.9%)
CIE-LABlab(30.34, 57.37, -56.14)
CIE-LCHlch(30.34, 80.27, 315.62°)
OKLaboklab(42.59% 0.1207 -0.1599)
OKLCHoklch(42.59% 0.2 307.1)
XYZxyz(12.9224, 6.3743, 34.2609)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C17A1 #4CA117
analogous
#2717A1 #6C17A1 #A11791
triadic
#6C17A1 #A16C17 #17A16C
tetradic
#6C17A1 #A12717 #4CA117 #1791A1
square
#6C17A1 #A12717 #4CA117 #1791A1
split-complementary
#6C17A1 #91A117 #17A127
monochromatic
#240836 #480F6B #6C17A1 #901FD7 #AB4DE6

Accessibility & contrast

On white

9.23
#6C17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6C17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C17A1
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C17A1#FFFFFF#000000##FFFFFF
##6C17A11.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#633E5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c17a1;
/* rgb */ color: rgb(108, 23, 161);
/* oklch */ color: oklch(42.6% 0.200 307.1);
Tailwind
colors: {
  custom: {
    50: '#9c62be',
    500: '#6c17a1',
    950: '#000000',
  },
}
SCSS
$custom: #6c17a1;
$custom-light: #9c62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6c17a1",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 276.957,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4259,
    "c": 0.20035,
    "h": 307.1
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#6C17A1
secondary
#7CC74C
accent
#F2367E
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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