#6C1B8D#6C1B8D

#6C1B8D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.3% C 0.179 H 313.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#6C1B8D
RGBrgb(108, 27, 141)
HSLhsl(283, 68%, 33%)
HSVhsv(283, 81%, 55%)
CMYKcmyk(23.4%, 80.9%, 0%, 44.7%)
CIE-LABlab(29.15, 51.86, -45.81)
CIE-LCHlch(29.15, 69.20, 318.54°)
OKLaboklab(41.26% 0.1231 -0.1296)
OKLCHoklch(41.26% 0.179 313.5)
XYZxyz(11.3831, 5.8955, 25.7324)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1B8D #3C8D1B
analogous
#331B8D #6C1B8D #8D1B75
triadic
#6C1B8D #8D6C1B #1B8D6C
tetradic
#6C1B8D #8D331B #3C8D1B #1B758D
square
#6C1B8D #8D331B #3C8D1B #1B758D
split-complementary
#6C1B8D #758D1B #1B8D33
monochromatic
#1D0726 #45115A #6C1B8D #9325C0 #B147DC

Accessibility & contrast

On white

9.64
#6C1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6C1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1B8D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1B8D#FFFFFF#000000##FFFFFF
##6C1B8D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#0C468B
Tritanopia (blue-blind)
#683754
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6c1b8d;
/* rgb */ color: rgb(108, 27, 141);
/* oklch */ color: oklch(41.3% 0.179 313.5);
Tailwind
colors: {
  custom: {
    50: '#9a62af',
    500: '#6c1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #6c1b8d;
$custom-light: #9a62af;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1b8d",
  "rgb": {
    "r": 108,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 282.632,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41257,
    "c": 0.17871,
    "h": 313.5
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#6C1B8D
secondary
#69BD46
accent
#EB3D6F
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0610
muted
#7E7A7F

Preview Lab

Preview with #6C1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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