#6C27BA#6C27BA

#6C27BA is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.211 H 298.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#6C27BA
RGBrgb(108, 39, 186)
HSLhsl(268, 65%, 44%)
HSVhsv(268, 79%, 73%)
CMYKcmyk(41.9%, 79%, 0%, 27.1%)
CIE-LABlab(34.36, 57.67, -64.52)
CIE-LCHlch(34.36, 86.54, 311.79°)
OKLaboklab(46.05% 0.1017 -0.1846)
OKLCHoklch(46.05% 0.211 298.9)
XYZxyz(15.7705, 8.1841, 47.1937)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C27BA #75BA27
analogous
#272CBA #6C27BA #B627BA
triadic
#6C27BA #BA6C27 #27BA6C
tetradic
#6C27BA #BA272C #75BA27 #27BAB6
square
#6C27BA #BA272C #75BA27 #27BAB6
split-complementary
#6C27BA #BAB627 #2CBA27
monochromatic
#311255 #4F1C87 #6C27BA #8B46D8 #AA79E3

Accessibility & contrast

On white

7.96
#6C27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6C27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C27BA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C27BA#FFFFFF#000000##FFFFFF
##6C27BA1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#595071
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c27ba;
/* rgb */ color: rgb(108, 39, 186);
/* oklch */ color: oklch(46.1% 0.211 298.9);
Tailwind
colors: {
  custom: {
    50: '#9e6ad0',
    500: '#6c27ba',
    950: '#000000',
  },
}
SCSS
$custom: #6c27ba;
$custom-light: #9e6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c27ba",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 268.163,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4605,
    "c": 0.21081,
    "h": 298.9
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#6C27BA
secondary
#A1CB72
accent
#E84099
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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