#6C17A0#6C17A0

#6C17A0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.5% C 0.199 H 307.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#6C17A0
RGBrgb(108, 23, 160)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 63%)
CMYKcmyk(32.5%, 85.6%, 0%, 37.3%)
CIE-LABlab(30.25, 57.15, -55.67)
CIE-LCHlch(30.25, 79.79, 315.75°)
OKLaboklab(42.51% 0.121 -0.1585)
OKLCHoklch(42.51% 0.199 307.4)
XYZxyz(12.8345, 6.3392, 33.7983)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C17A0 #4BA017
analogous
#2717A0 #6C17A0 #A0178F
triadic
#6C17A0 #A06C17 #17A06C
tetradic
#6C17A0 #A02717 #4BA017 #178FA0
square
#6C17A0 #A02717 #4BA017 #178FA0
split-complementary
#6C17A0 #8FA017 #17A027
monochromatic
#240835 #480F6A #6C17A0 #901FD6 #AB4CE5

Accessibility & contrast

On white

9.26
#6C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C17A0
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C17A0#FFFFFF#000000##FFFFFF
##6C17A01.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c17a0;
/* rgb */ color: rgb(108, 23, 160);
/* oklch */ color: oklch(42.5% 0.199 307.4);
Tailwind
colors: {
  custom: {
    50: '#9c62bd',
    500: '#6c17a0',
    950: '#000000',
  },
}
SCSS
$custom: #6c17a0;
$custom-light: #9c62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c17a0",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 277.226,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42505,
    "c": 0.19945,
    "h": 307.4
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#6C17A0
secondary
#7BC74C
accent
#F1367D
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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