#6C288B#6C288B

#6C288B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.162 H 313.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6C288B
RGBrgb(108, 40, 139)
HSLhsl(281, 55%, 35%)
HSVhsv(281, 71%, 55%)
CMYKcmyk(22.3%, 71.2%, 0%, 45.5%)
CIE-LABlab(30.81, 46.27, -41.89)
CIE-LCHlch(30.81, 62.42, 317.85°)
OKLaboklab(42.39% 0.1106 -0.1182)
OKLCHoklch(42.39% 0.162 313.1)
XYZxyz(11.6025, 6.5702, 25.0781)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C288B #478B28
analogous
#3A288B #6C288B #8B2878
triadic
#6C288B #8B6C28 #288B6C
tetradic
#6C288B #8B3A28 #478B28 #28788B
square
#6C288B #8B3A28 #478B28 #28788B
split-complementary
#6C288B #788B28 #288B3A
monochromatic
#220D2C #471A5B #6C288B #9136BB #AC5DD0

Accessibility & contrast

On white

9.08
#6C288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6C288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C288B
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C288B#FFFFFF#000000##FFFFFF
##6C288B1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#693D56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c288b;
/* rgb */ color: rgb(108, 40, 139);
/* oklch */ color: oklch(42.4% 0.162 313.1);
Tailwind
colors: {
  custom: {
    50: '#9a68ad',
    500: '#6c288b',
    950: '#000000',
  },
}
SCSS
$custom: #6c288b;
$custom-light: #9a68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c288b",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 281.212,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42387,
    "c": 0.16187,
    "h": 313.1
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#6C288B
secondary
#76B659
accent
#DF4978
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C288B

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

Preview Lab → · Contrast checker → · Palette generator →

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