#6C1F96#6C1F96

#6C1F96 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.183 H 310.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6C1F96
RGBrgb(108, 31, 150)
HSLhsl(279, 66%, 35%)
HSVhsv(279, 79%, 59%)
CMYKcmyk(28%, 79.3%, 0%, 41.2%)
CIE-LABlab(30.33, 52.38, -49.45)
CIE-LCHlch(30.33, 72.03, 316.65°)
OKLaboklab(42.3% 0.1178 -0.1403)
OKLCHoklch(42.3% 0.183 310)
XYZxyz(12.1783, 6.3704, 29.4363)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1F96 #49961F
analogous
#311F96 #6C1F96 #961F84
triadic
#6C1F96 #966C1F #1F966C
tetradic
#6C1F96 #96311F #49961F #1F8496
square
#6C1F96 #96311F #49961F #1F8496
split-complementary
#6C1F96 #84961F #1F9631
monochromatic
#230A31 #471563 #6C1F96 #9129C9 #AC54DC

Accessibility & contrast

On white

9.23
#6C1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C1F96
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1F96#FFFFFF#000000##FFFFFF
##6C1F961.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#663D5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c1f96;
/* rgb */ color: rgb(108, 31, 150);
/* oklch */ color: oklch(42.3% 0.183 310.0);
Tailwind
colors: {
  custom: {
    50: '#9b64b6',
    500: '#6c1f96',
    950: '#000000',
  },
}
SCSS
$custom: #6c1f96;
$custom-light: #9b64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1f96",
  "rgb": {
    "r": 108,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 278.824,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42304,
    "c": 0.18315,
    "h": 310
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#6C1F96
secondary
#78BF52
accent
#E93F7B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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