#6C27AC#6C27AC

#6C27AC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.9% C 0.197 H 302.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#6C27AC
RGBrgb(108, 39, 172)
HSLhsl(271, 63%, 41%)
HSVhsv(271, 77%, 67%)
CMYKcmyk(37.2%, 77.3%, 0%, 32.5%)
CIE-LABlab(33.17, 54.31, -58.14)
CIE-LCHlch(33.17, 79.56, 313.05°)
OKLaboklab(44.85% 0.1056 -0.1659)
OKLCHoklch(44.85% 0.197 302.5)
XYZxyz(14.3545, 7.6177, 39.7358)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C27AC #67AC27
analogous
#2A27AC #6C27AC #AC27AA
triadic
#6C27AC #AC6C27 #27AC6C
tetradic
#6C27AC #AC2A27 #67AC27 #27AAAC
square
#6C27AC #AC2A27 #67AC27 #27AAAC
split-complementary
#6C27AC #AAAC27 #27AC2A
monochromatic
#2D1048 #4D1C7A #6C27AC #8B3DD3 #A96FDE

Accessibility & contrast

On white

8.32
#6C27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6C27AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C27AC
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C27AC#FFFFFF#000000##FFFFFF
##6C27AC1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#5E4A69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c27ac;
/* rgb */ color: rgb(108, 39, 172);
/* oklch */ color: oklch(44.9% 0.197 302.5);
Tailwind
colors: {
  custom: {
    50: '#9c69c6',
    500: '#6c27ac',
    950: '#000000',
  },
}
SCSS
$custom: #6c27ac;
$custom-light: #9c69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c27ac",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 271.128,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44851,
    "c": 0.19663,
    "h": 302.5
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#6C27AC
secondary
#96C56A
accent
#E64291
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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