#6C128D#6C128D

#6C128D is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.6% C 0.186 H 314.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#6C128D
RGBrgb(108, 18, 141)
HSLhsl(284, 77%, 31%)
HSVhsv(284, 87%, 55%)
CMYKcmyk(23.4%, 87.2%, 0%, 44.7%)
CIE-LABlab(28.23, 54.53, -47.30)
CIE-LCHlch(28.23, 72.18, 319.06°)
OKLaboklab(40.62% 0.1296 -0.1339)
OKLCHoklch(40.62% 0.186 314.1)
XYZxyz(11.2075, 5.5442, 25.6739)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C128D #338D12
analogous
#2E128D #6C128D #8D1270
triadic
#6C128D #8D6C12 #128D6C
tetradic
#6C128D #8D2E12 #338D12 #12708D
square
#6C128D #8D2E12 #338D12 #12708D
split-complementary
#6C128D #708D12 #128D2E
monochromatic
#190420 #420B57 #6C128D #9619C3 #B634E5

Accessibility & contrast

On white

9.96
#6C128D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6C128D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C128D
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C128D#FFFFFF#000000##FFFFFF
##6C128D1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#693353
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c128d;
/* rgb */ color: rgb(108, 18, 141);
/* oklch */ color: oklch(40.6% 0.186 314.1);
Tailwind
colors: {
  custom: {
    50: '#9b5faf',
    500: '#6c128d',
    950: '#000000',
  },
}
SCSS
$custom: #6c128d;
$custom-light: #9b5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#6c128d",
  "rgb": {
    "r": 108,
    "g": 18,
    "b": 141
  },
  "hsl": {
    "h": 283.902,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40617,
    "c": 0.18635,
    "h": 314.1
  },
  "luminance": 0.05544
}

Semantic roles & 50–950 ramp

primary
#6C128D
secondary
#5EC139
accent
#F43467
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0F0510
muted
#7E797F

Preview Lab

Preview with #6C128D

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

Preview Lab → · Contrast checker → · Palette generator →

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