#6C27BD#6C27BD

#6C27BD is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.214 H 298.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#6C27BD
RGBrgb(108, 39, 189)
HSLhsl(268, 66%, 45%)
HSVhsv(268, 79%, 74%)
CMYKcmyk(42.9%, 79.4%, 0%, 25.9%)
CIE-LABlab(34.63, 58.39, -65.86)
CIE-LCHlch(34.63, 88.02, 311.56°)
OKLaboklab(46.31% 0.1009 -0.1886)
OKLCHoklch(46.31% 0.214 298.1)
XYZxyz(16.0928, 8.3130, 48.8910)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C27BD #78BD27
analogous
#272DBD #6C27BD #B727BD
triadic
#6C27BD #BD6C27 #27BD6C
tetradic
#6C27BD #BD272D #78BD27 #27BDB7
square
#6C27BD #BD272D #78BD27 #27BDB7
split-complementary
#6C27BD #BDB727 #2DBD27
monochromatic
#321258 #4F1D8A #6C27BD #8B48D9 #AB7BE4

Accessibility & contrast

On white

7.89
#6C27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6C27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C27BD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C27BD#FFFFFF#000000##FFFFFF
##6C27BD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#575172
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c27bd;
/* rgb */ color: rgb(108, 39, 189);
/* oklch */ color: oklch(46.3% 0.214 298.1);
Tailwind
colors: {
  custom: {
    50: '#9e6ad2',
    500: '#6c27bd',
    950: '#000000',
  },
}
SCSS
$custom: #6c27bd;
$custom-light: #9e6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c27bd",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 267.6,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46314,
    "c": 0.21385,
    "h": 298.1
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#6C27BD
secondary
#A3CC74
accent
#E93F9B
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6C27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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