#6C51CF#6C51CF

#6C51CF is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.186 H 288.3°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#6C51CF
RGBrgb(108, 81, 207)
HSLhsl(253, 57%, 56%)
HSVhsv(253, 61%, 81%)
CMYKcmyk(47.8%, 60.9%, 0%, 18.8%)
CIE-LABlab(43.62, 42.31, -61.69)
CIE-LCHlch(43.62, 74.81, 304.45°)
OKLaboklab(53.18% 0.0583 -0.1765)
OKLCHoklch(53.18% 0.186 288.3)
XYZxyz(20.3860, 13.5771, 60.5659)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51CF #B4CF51
analogous
#5175CF #6C51CF #AB51CF
triadic
#6C51CF #CF6C51 #51CF6C
tetradic
#6C51CF #CF5175 #B4CF51 #51CFAB
square
#6C51CF #CF5175 #B4CF51 #51CFAB
split-complementary
#6C51CF #CFAB51 #75CF51
monochromatic
#382482 #4D31B2 #6C51CF #9581DC #BDB1E9

Accessibility & contrast

On white

5.65
#6C51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#6C51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51CF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51CF#FFFFFF#000000##FFFFFF
##6C51CF1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0064CC
Tritanopia (blue-blind)
#4B6E88
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6c51cf;
/* rgb */ color: rgb(108, 81, 207);
/* oklch */ color: oklch(53.2% 0.186 288.3);
Tailwind
colors: {
  custom: {
    50: '#9d83de',
    500: '#6c51cf',
    950: '#000000',
  },
}
SCSS
$custom: #6c51cf;
$custom-light: #9d83de;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51cf",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 252.857,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.53182,
    "c": 0.18583,
    "h": 288.3
  },
  "luminance": 0.13578
}

Semantic roles & 50–950 ramp

primary
#6C51CF
secondary
#CDD8A4
accent
#E048BF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6C51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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