#6D17A1#6D17A1

#6D17A1 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.7% C 0.201 H 307.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#6D17A1
RGBrgb(109, 23, 161)
HSLhsl(277, 75%, 36%)
HSVhsv(277, 86%, 63%)
CMYKcmyk(32.3%, 85.7%, 0%, 36.9%)
CIE-LABlab(30.49, 57.52, -55.88)
CIE-LCHlch(30.49, 80.20, 315.83°)
OKLaboklab(42.73% 0.1222 -0.1591)
OKLCHoklch(42.73% 0.201 307.5)
XYZxyz(13.0447, 6.4374, 34.2666)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D17A1 #4BA117
analogous
#2817A1 #6D17A1 #A11790
triadic
#6D17A1 #A16D17 #17A16D
tetradic
#6D17A1 #A12817 #4BA117 #1790A1
square
#6D17A1 #A12817 #4BA117 #1790A1
split-complementary
#6D17A1 #90A117 #17A128
monochromatic
#240836 #490F6B #6D17A1 #911FD7 #AC4DE6

Accessibility & contrast

On white

9.18
#6D17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6D17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D17A1
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D17A1#FFFFFF#000000##FFFFFF
##6D17A11.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d17a1;
/* rgb */ color: rgb(109, 23, 161);
/* oklch */ color: oklch(42.7% 0.201 307.5);
Tailwind
colors: {
  custom: {
    50: '#9d62be',
    500: '#6d17a1',
    950: '#000000',
  },
}
SCSS
$custom: #6d17a1;
$custom-light: #9d62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6d17a1",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 277.391,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42727,
    "c": 0.2006,
    "h": 307.5
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#6D17A1
secondary
#7BC74C
accent
#F2367D
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6D17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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