#6B17A0#6B17A0

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

Color values

HEX#6B17A0
RGBrgb(107, 23, 160)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 63%)
CMYKcmyk(33.1%, 85.6%, 0%, 37.3%)
CIE-LABlab(30.10, 57.00, -55.93)
CIE-LCHlch(30.10, 79.86, 315.55°)
OKLaboklab(42.37% 0.1196 -0.1593)
OKLCHoklch(42.37% 0.199 306.9)
XYZxyz(12.7136, 6.2768, 33.7927)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B17A0 #4CA017
analogous
#2617A0 #6B17A0 #A01790
triadic
#6B17A0 #A06B17 #17A06B
tetradic
#6B17A0 #A02617 #4CA017 #1790A0
square
#6B17A0 #A02617 #4CA017 #1790A0
split-complementary
#6B17A0 #90A017 #17A026
monochromatic
#230835 #470F6A #6B17A0 #8F1FD6 #AA4CE5

Accessibility & contrast

On white

9.31
#6B17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6B17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B17A0
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B17A0#FFFFFF#000000##FFFFFF
##6B17A01.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#623E5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b17a0;
/* rgb */ color: rgb(107, 23, 160);
/* oklch */ color: oklch(42.4% 0.199 306.9);
Tailwind
colors: {
  custom: {
    50: '#9b62bd',
    500: '#6b17a0',
    950: '#000000',
  },
}
SCSS
$custom: #6b17a0;
$custom-light: #9b62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b17a0",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 276.788,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42368,
    "c": 0.19921,
    "h": 306.9
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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