#6C287D#6C287D

#6C287D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.4% C 0.148 H 319.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#6C287D
RGBrgb(108, 40, 125)
HSLhsl(288, 52%, 32%)
HSVhsv(288, 68%, 49%)
CMYKcmyk(13.6%, 68%, 0%, 51%)
CIE-LABlab(29.88, 43.25, -34.65)
CIE-LCHlch(29.88, 55.42, 321.30°)
OKLaboklab(41.42% 0.1115 -0.0969)
OKLCHoklch(41.42% 0.148 319)
XYZxyz(10.6443, 6.1869, 20.0316)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C287D #397D28
analogous
#42287D #6C287D #7D2864
triadic
#6C287D #7D6C28 #287D6C
tetradic
#6C287D #7D4228 #397D28 #28647D
square
#6C287D #7D4228 #397D28 #28647D
split-complementary
#6C287D #647D28 #287D42
monochromatic
#1C0A20 #44194F #6C287D #9437AB #B256C9

Accessibility & contrast

On white

9.39
#6C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C287D
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C287D#FFFFFF#000000##FFFFFF
##6C287D1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4280
Deuteranopia (green-blind)
#2D497B
Tritanopia (blue-blind)
#6C374F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c287d;
/* rgb */ color: rgb(108, 40, 125);
/* oklch */ color: oklch(41.4% 0.148 319.0);
Tailwind
colors: {
  custom: {
    50: '#9967a3',
    500: '#6c287d',
    950: '#000000',
  },
}
SCSS
$custom: #6c287d;
$custom-light: #9967a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c287d",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 288,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41424,
    "c": 0.14776,
    "h": 319
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#6C287D
secondary
#65AE53
accent
#DB4D69
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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