#6C1D97#6C1D97

#6C1D97 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.186 H 309.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#6C1D97
RGBrgb(108, 29, 151)
HSLhsl(279, 68%, 35%)
HSVhsv(279, 81%, 59%)
CMYKcmyk(28.5%, 80.8%, 0%, 40.8%)
CIE-LABlab(30.16, 53.31, -50.33)
CIE-LCHlch(30.16, 73.31, 316.65°)
OKLaboklab(42.21% 0.1192 -0.1429)
OKLCHoklch(42.21% 0.186 309.8)
XYZxyz(12.2085, 6.3015, 29.8453)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1D97 #48971D
analogous
#2F1D97 #6C1D97 #971D85
triadic
#6C1D97 #976C1D #1D976C
tetradic
#6C1D97 #972F1D #48971D #1D8597
square
#6C1D97 #972F1D #48971D #1D8597
split-complementary
#6C1D97 #85971D #1D972F
monochromatic
#230930 #471364 #6C1D97 #9127CA #AC51DE

Accessibility & contrast

On white

9.29
#6C1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C1D97
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1D97#FFFFFF#000000##FFFFFF
##6C1D971.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#663C5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c1d97;
/* rgb */ color: rgb(108, 29, 151);
/* oklch */ color: oklch(42.2% 0.186 309.8);
Tailwind
colors: {
  custom: {
    50: '#9b63b6',
    500: '#6c1d97',
    950: '#000000',
  },
}
SCSS
$custom: #6c1d97;
$custom-light: #9b63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1d97",
  "rgb": {
    "r": 108,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 278.852,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.18606,
    "h": 309.8
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#6C1D97
secondary
#77C04F
accent
#EB3D7A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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