#6C27AB#6C27AB

#6C27AB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.196 H 302.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#6C27AB
RGBrgb(108, 39, 171)
HSLhsl(271, 63%, 41%)
HSVhsv(271, 77%, 67%)
CMYKcmyk(36.8%, 77.2%, 0%, 32.9%)
CIE-LABlab(33.09, 54.08, -57.68)
CIE-LCHlch(33.09, 79.06, 313.15°)
OKLaboklab(44.77% 0.1058 -0.1645)
OKLCHoklch(44.77% 0.196 302.7)
XYZxyz(14.2588, 7.5794, 39.2320)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C27AB #66AB27
analogous
#2A27AB #6C27AB #AB27A8
triadic
#6C27AB #AB6C27 #27AB6C
tetradic
#6C27AB #AB2A27 #66AB27 #27A8AB
square
#6C27AB #AB2A27 #66AB27 #27A8AB
split-complementary
#6C27AB #A8AB27 #27AB2A
monochromatic
#2D1047 #4D1C79 #6C27AB #8B3DD3 #A96EDE

Accessibility & contrast

On white

8.35
#6C27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C27AB
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C27AB#FFFFFF#000000##FFFFFF
##6C27AB1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#5F4968
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c27ab;
/* rgb */ color: rgb(108, 39, 171);
/* oklch */ color: oklch(44.8% 0.196 302.7);
Tailwind
colors: {
  custom: {
    50: '#9c69c5',
    500: '#6c27ab',
    950: '#000000',
  },
}
SCSS
$custom: #6c27ab;
$custom-light: #9c69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c27ab",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 271.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44768,
    "c": 0.19562,
    "h": 302.7
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#6C27AB
secondary
#95C569
accent
#E64290
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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