#6C27A2#6C27A2

#6C27A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.186 H 305.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#6C27A2
RGBrgb(108, 39, 162)
HSLhsl(274, 61%, 39%)
HSVhsv(274, 76%, 64%)
CMYKcmyk(33.3%, 75.9%, 0%, 36.5%)
CIE-LABlab(32.36, 51.96, -53.44)
CIE-LCHlch(32.36, 74.54, 314.19°)
OKLaboklab(44.03% 0.1079 -0.1521)
OKLCHoklch(44.03% 0.186 305.4)
XYZxyz(13.4300, 7.2479, 34.8669)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C27A2 #5DA227
analogous
#2F27A2 #6C27A2 #A2279A
triadic
#6C27A2 #A26C27 #27A26C
tetradic
#6C27A2 #A22F27 #5DA227 #279AA2
square
#6C27A2 #A22F27 #5DA227 #279AA2
split-complementary
#6C27A2 #9AA227 #27A22F
monochromatic
#2A0F3F #4B1B71 #6C27A2 #8C37CF #A969DB

Accessibility & contrast

On white

8.57
#6C27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6C27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C27A2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C27A2#FFFFFF#000000##FFFFFF
##6C27A21.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#624663
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6c27a2;
/* rgb */ color: rgb(108, 39, 162);
/* oklch */ color: oklch(44.0% 0.186 305.4);
Tailwind
colors: {
  custom: {
    50: '#9b69be',
    500: '#6c27a2',
    950: '#000000',
  },
}
SCSS
$custom: #6c27a2;
$custom-light: #9b69be;
$custom-dark: #000000;
JSON
{
  "hex": "#6c27a2",
  "rgb": {
    "r": 108,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 273.659,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44031,
    "c": 0.18648,
    "h": 305.4
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#6C27A2
secondary
#8DC164
accent
#E4438A
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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