#6C1F8A#6C1F8A

#6C1F8A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.172 H 314.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#6C1F8A
RGBrgb(108, 31, 138)
HSLhsl(283, 63%, 33%)
HSVhsv(283, 78%, 54%)
CMYKcmyk(21.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(29.42, 49.79, -43.51)
CIE-LCHlch(29.42, 66.12, 318.85°)
OKLaboklab(41.38% 0.1201 -0.1228)
OKLCHoklch(41.38% 0.172 314.3)
XYZxyz(11.2610, 6.0035, 24.6054)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1F8A #3D8A1F
analogous
#371F8A #6C1F8A #8A1F72
triadic
#6C1F8A #8A6C1F #1F8A6C
tetradic
#6C1F8A #8A371F #3D8A1F #1F728A
square
#6C1F8A #8A371F #3D8A1F #1F728A
split-complementary
#6C1F8A #728A1F #1F8A37
monochromatic
#1E0926 #451458 #6C1F8A #932ABC #B04CD7

Accessibility & contrast

On white

9.54
#6C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#6C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1F8A
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1F8A#FFFFFF#000000##FFFFFF
##6C1F8A1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#184788
Tritanopia (blue-blind)
#693753
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6c1f8a;
/* rgb */ color: rgb(108, 31, 138);
/* oklch */ color: oklch(41.4% 0.172 314.3);
Tailwind
colors: {
  custom: {
    50: '#9a64ad',
    500: '#6c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #6c1f8a;
$custom-light: #9a64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1f8a",
  "rgb": {
    "r": 108,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 283.178,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41379,
    "c": 0.17177,
    "h": 314.3
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#6C1F8A
secondary
#6ABA4B
accent
#E64170
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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