#6C51DC#6C51DC

#6C51DC is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.2% C 0.202 H 286.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#6C51DC
RGBrgb(108, 81, 220)
HSLhsl(252, 67%, 59%)
HSVhsv(252, 63%, 86%)
CMYKcmyk(50.9%, 63.2%, 0%, 13.7%)
CIE-LABlab(44.57, 46.09, -67.58)
CIE-LCHlch(44.57, 81.81, 304.29°)
OKLaboklab(54.18% 0.0573 -0.1938)
OKLCHoklch(54.18% 0.202 286.5)
XYZxyz(22.0412, 14.2392, 69.2833)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51DC #C1DC51
analogous
#517CDC #6C51DC #B251DC
triadic
#6C51DC #DC6C51 #51DC6C
tetradic
#6C51DC #DC517C #C1DC51 #51DCB2
square
#6C51DC #DC517C #C1DC51 #51DCB2
split-complementary
#6C51DC #DCB251 #7CDC51
monochromatic
#351E95 #4728C8 #6C51DC #9784E6 #C2B7F0

Accessibility & contrast

On white

5.46
#6C51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#6C51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51DC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51DC#FFFFFF#000000##FFFFFF
##6C51DC1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0065D9
Tritanopia (blue-blind)
#42738F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6c51dc;
/* rgb */ color: rgb(108, 81, 220);
/* oklch */ color: oklch(54.2% 0.202 286.5);
Tailwind
colors: {
  custom: {
    50: '#9f83e8',
    500: '#6c51dc',
    950: '#000000',
  },
}
SCSS
$custom: #6c51dc;
$custom-light: #9f83e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51dc",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 251.655,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54177,
    "c": 0.20208,
    "h": 286.5
  },
  "luminance": 0.1424
}

Semantic roles & 50–950 ramp

primary
#6C51DC
secondary
#D5E0A9
accent
#E93EC8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #6C51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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