#6C277D#6C277D

#6C277D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.3% C 0.149 H 319.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#6C277D
RGBrgb(108, 39, 125)
HSLhsl(288, 52%, 32%)
HSVhsv(288, 69%, 49%)
CMYKcmyk(13.6%, 68.8%, 0%, 51%)
CIE-LABlab(29.71, 43.71, -34.91)
CIE-LCHlch(29.71, 55.94, 321.39°)
OKLaboklab(41.31% 0.1127 -0.0977)
OKLCHoklch(41.31% 0.149 319.1)
XYZxyz(10.6110, 6.1203, 20.0205)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C277D #387D27
analogous
#41277D #6C277D #7D2763
triadic
#6C277D #7D6C27 #277D6C
tetradic
#6C277D #7D4127 #387D27 #27637D
square
#6C277D #7D4127 #387D27 #27637D
split-complementary
#6C277D #637D27 #277D41
monochromatic
#1B0A20 #44184E #6C277D #9436AC #B355CA

Accessibility & contrast

On white

9.44
#6C277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6C277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C277D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C277D#FFFFFF#000000##FFFFFF
##6C277D1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074180
Deuteranopia (green-blind)
#2D487B
Tritanopia (blue-blind)
#6C364E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c277d;
/* rgb */ color: rgb(108, 39, 125);
/* oklch */ color: oklch(41.3% 0.149 319.1);
Tailwind
colors: {
  custom: {
    50: '#9967a3',
    500: '#6c277d',
    950: '#000000',
  },
}
SCSS
$custom: #6c277d;
$custom-light: #9967a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c277d",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 288.14,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41305,
    "c": 0.14917,
    "h": 319.1
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#6C277D
secondary
#64AF51
accent
#DC4C68
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C277D

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

Preview Lab → · Contrast checker → · Palette generator →

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