#6C51EC#6C51EC

#6C51EC is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.5% C 0.222 H 284.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#6C51EC
RGBrgb(108, 81, 236)
HSLhsl(250, 80%, 62%)
HSVhsv(250, 66%, 93%)
CMYKcmyk(54.2%, 65.7%, 0%, 7.5%)
CIE-LABlab(45.81, 50.76, -74.64)
CIE-LCHlch(45.81, 90.26, 304.22°)
OKLaboklab(55.46% 0.0555 -0.2145)
OKLCHoklch(55.46% 0.222 284.5)
XYZxyz(24.2625, 15.1277, 80.9821)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51EC #D1EC51
analogous
#5183EC #6C51EC #BA51EC
triadic
#6C51EC #EC6C51 #51EC6C
tetradic
#6C51EC #EC5183 #D1EC51 #51ECBA
square
#6C51EC #EC5183 #D1EC51 #51ECBA
split-complementary
#6C51EC #ECBA51 #83EC51
monochromatic
#2E13AF #3D1AE6 #6C51EC #9B88F2 #C9BFF8

Accessibility & contrast

On white

5.22
#6C51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#6C51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51EC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51EC#FFFFFF#000000##FFFFFF
##6C51EC1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#327898
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6c51ec;
/* rgb */ color: rgb(108, 81, 236);
/* oklch */ color: oklch(55.5% 0.222 284.5);
Tailwind
colors: {
  custom: {
    50: '#a184f3',
    500: '#6c51ec',
    950: '#000000',
  },
}
SCSS
$custom: #6c51ec;
$custom-light: #a184f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51ec",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 250.452,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55455,
    "c": 0.22159,
    "h": 284.5
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#6C51EC
secondary
#DFE9B0
accent
#DD09B8
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6C51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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