#6C51EA#6C51EA

#6C51EA is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.3% C 0.219 H 284.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#6C51EA
RGBrgb(108, 81, 234)
HSLhsl(251, 78%, 62%)
HSVhsv(251, 65%, 92%)
CMYKcmyk(53.8%, 65.4%, 0%, 8.2%)
CIE-LABlab(45.65, 50.18, -73.77)
CIE-LCHlch(45.65, 89.22, 304.22°)
OKLaboklab(55.29% 0.0558 -0.212)
OKLCHoklch(55.29% 0.219 284.7)
XYZxyz(23.9736, 15.0122, 79.4603)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51EA #CFEA51
analogous
#5183EA #6C51EA #B951EA
triadic
#6C51EA #EA6C51 #51EA6C
tetradic
#6C51EA #EA5183 #CFEA51 #51EAB9
square
#6C51EA #EA5183 #CFEA51 #51EAB9
split-complementary
#6C51EA #EAB951 #83EA51
monochromatic
#2F15AC #3E1BE2 #6C51EA #9A88F1 #C8BEF7

Accessibility & contrast

On white

5.25
#6C51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#6C51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51EA
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51EA#FFFFFF#000000##FFFFFF
##6C51EA1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0067E7
Tritanopia (blue-blind)
#347897
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6c51ea;
/* rgb */ color: rgb(108, 81, 234);
/* oklch */ color: oklch(55.3% 0.219 284.7);
Tailwind
colors: {
  custom: {
    50: '#a184f2',
    500: '#6c51ea',
    950: '#000000',
  },
}
SCSS
$custom: #6c51ea;
$custom-light: #a184f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51ea",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 250.588,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.55292,
    "c": 0.21918,
    "h": 284.7
  },
  "luminance": 0.15014
}

Semantic roles & 50–950 ramp

primary
#6C51EA
secondary
#DEE8AF
accent
#DB0BB6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6C51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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