#6B17A1#6B17A1

#6B17A1 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.5% C 0.200 H 306.6°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#6B17A1
RGBrgb(107, 23, 161)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 63%)
CMYKcmyk(33.5%, 85.7%, 0%, 36.9%)
CIE-LABlab(30.19, 57.22, -56.39)
CIE-LCHlch(30.19, 80.34, 315.42°)
OKLaboklab(42.45% 0.1193 -0.1607)
OKLCHoklch(42.45% 0.2 306.6)
XYZxyz(12.8014, 6.3119, 34.2552)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B17A1 #4DA117
analogous
#2617A1 #6B17A1 #A11792
triadic
#6B17A1 #A16B17 #17A16B
tetradic
#6B17A1 #A12617 #4DA117 #1792A1
square
#6B17A1 #A12617 #4DA117 #1792A1
split-complementary
#6B17A1 #92A117 #17A126
monochromatic
#240836 #470F6B #6B17A1 #8F1FD7 #AA4DE6

Accessibility & contrast

On white

9.28
#6B17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B17A1
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B17A1#FFFFFF#000000##FFFFFF
##6B17A11.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#613F5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b17a1;
/* rgb */ color: rgb(107, 23, 161);
/* oklch */ color: oklch(42.5% 0.200 306.6);
Tailwind
colors: {
  custom: {
    50: '#9b62be',
    500: '#6b17a1',
    950: '#000000',
  },
}
SCSS
$custom: #6b17a1;
$custom-light: #9b62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b17a1",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 276.522,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.20011,
    "h": 306.6
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#6B17A1
secondary
#7DC74C
accent
#F23680
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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