#6C1B83#6C1B83

#6C1B83 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.5% C 0.170 H 317.4°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#6C1B83
RGBrgb(108, 27, 131)
HSLhsl(287, 66%, 31%)
HSVhsv(287, 79%, 51%)
CMYKcmyk(17.6%, 79.4%, 0%, 48.6%)
CIE-LABlab(28.41, 49.80, -40.77)
CIE-LCHlch(28.41, 64.36, 320.69°)
OKLaboklab(40.5% 0.1249 -0.1148)
OKLCHoklch(40.5% 0.17 317.4)
XYZxyz(10.6724, 5.6112, 21.9892)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1B83 #32831B
analogous
#381B83 #6C1B83 #831B66
triadic
#6C1B83 #836C1B #1B836C
tetradic
#6C1B83 #83381B #32831B #1B6683
square
#6C1B83 #83381B #32831B #1B6683
split-complementary
#6C1B83 #66831B #1B8338
monochromatic
#18061E #421150 #6C1B83 #9625B6 #B641D8

Accessibility & contrast

On white

9.90
#6C1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6C1B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1B83
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1B83#FFFFFF#000000##FFFFFF
##6C1B831.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#1E4581
Tritanopia (blue-blind)
#6B324F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c1b83;
/* rgb */ color: rgb(108, 27, 131);
/* oklch */ color: oklch(40.5% 0.170 317.4);
Tailwind
colors: {
  custom: {
    50: '#9a62a8',
    500: '#6c1b83',
    950: '#000000',
  },
}
SCSS
$custom: #6c1b83;
$custom-light: #9a62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1b83",
  "rgb": {
    "r": 108,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 286.731,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.16959,
    "h": 317.4
  },
  "luminance": 0.05611
}

Semantic roles & 50–950 ramp

primary
#6C1B83
secondary
#5DB643
accent
#E93F65
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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