#6C27A5#6C27A5

#6C27A5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.190 H 304.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#6C27A5
RGBrgb(108, 39, 165)
HSLhsl(273, 62%, 40%)
HSVhsv(273, 76%, 65%)
CMYKcmyk(34.5%, 76.4%, 0%, 35.3%)
CIE-LABlab(32.60, 52.66, -54.86)
CIE-LCHlch(32.60, 76.05, 313.82°)
OKLaboklab(44.27% 0.1073 -0.1563)
OKLCHoklch(44.27% 0.19 304.5)
XYZxyz(13.6998, 7.3559, 36.2881)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C27A5 #60A527
analogous
#2D27A5 #6C27A5 #A5279F
triadic
#6C27A5 #A56C27 #27A56C
tetradic
#6C27A5 #A52D27 #60A527 #279FA5
square
#6C27A5 #A52D27 #60A527 #279FA5
split-complementary
#6C27A5 #9FA527 #27A52D
monochromatic
#2B1042 #4C1B74 #6C27A5 #8C39D0 #A96ADC

Accessibility & contrast

On white

8.50
#6C27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6C27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C27A5
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C27A5#FFFFFF#000000##FFFFFF
##6C27A51.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#614765
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c27a5;
/* rgb */ color: rgb(108, 39, 165);
/* oklch */ color: oklch(44.3% 0.190 304.5);
Tailwind
colors: {
  custom: {
    50: '#9b69c1',
    500: '#6c27a5',
    950: '#000000',
  },
}
SCSS
$custom: #6c27a5;
$custom-light: #9b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c27a5",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 272.857,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.44274,
    "c": 0.18954,
    "h": 304.5
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#6C27A5
secondary
#8FC266
accent
#E5438C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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