#6C51AE#6C51AE

#6C51AE is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.9% C 0.143 H 294.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#6C51AE
RGBrgb(108, 81, 174)
HSLhsl(257, 36%, 50%)
HSVhsv(257, 53%, 68%)
CMYKcmyk(37.9%, 53.4%, 0%, 31.8%)
CIE-LABlab(41.42, 32.91, -46.00)
CIE-LCHlch(41.42, 56.56, 305.58°)
OKLaboklab(50.86% 0.0584 -0.1303)
OKLCHoklch(50.86% 0.143 294.1)
XYZxyz(16.7648, 12.1286, 41.4940)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51AE #93AE51
analogous
#5165AE #6C51AE #9A51AE
triadic
#6C51AE #AE6C51 #51AE6C
tetradic
#6C51AE #AE5165 #93AE51 #51AE9A
square
#6C51AE #AE5165 #93AE51 #51AE9A
split-complementary
#6C51AE #AE9A51 #65AE51
monochromatic
#382A5A #523E84 #6C51AE #8F7BC1 #B3A5D5

Accessibility & contrast

On white

6.13
#6C51AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6C51AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51AE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51AE#FFFFFF#000000##FFFFFF
##6C51AE1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B1
Deuteranopia (green-blind)
#3060AC
Tritanopia (blue-blind)
#5C6478
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6c51ae;
/* rgb */ color: rgb(108, 81, 174);
/* oklch */ color: oklch(50.9% 0.143 294.1);
Tailwind
colors: {
  custom: {
    50: '#9a82c7',
    500: '#6c51ae',
    950: '#000000',
  },
}
SCSS
$custom: #6c51ae;
$custom-light: #9a82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51ae",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 257.419,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.5086,
    "c": 0.14281,
    "h": 294.1
  },
  "luminance": 0.12129
}

Semantic roles & 50–950 ramp

primary
#6C51AE
secondary
#B6C299
accent
#CC5BAC
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #6C51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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