#6E51EC#6E51EC

#6E51EC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.221 H 285.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6E51EC
RGBrgb(110, 81, 236)
HSLhsl(251, 80%, 62%)
HSVhsv(251, 66%, 93%)
CMYKcmyk(53.4%, 65.7%, 0%, 7.5%)
CIE-LABlab(45.98, 51.09, -74.35)
CIE-LCHlch(45.98, 90.21, 304.49°)
OKLaboklab(55.62% 0.0582 -0.2136)
OKLCHoklch(55.62% 0.221 285.2)
XYZxyz(24.5086, 15.2546, 80.9936)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E51EC #CFEC51
analogous
#5181EC #6E51EC #BC51EC
triadic
#6E51EC #EC6E51 #51EC6E
tetradic
#6E51EC #EC5181 #CFEC51 #51ECBC
square
#6E51EC #EC5181 #CFEC51 #51ECBC
split-complementary
#6E51EC #ECBC51 #81EC51
monochromatic
#3013AF #401AE6 #6E51EC #9C88F2 #CABFF8

Accessibility & contrast

On white

5.18
#6E51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#6E51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E51EC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E51EC#FFFFFF#000000##FFFFFF
##6E51EC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6e51ec;
/* rgb */ color: rgb(110, 81, 236);
/* oklch */ color: oklch(55.6% 0.221 285.2);
Tailwind
colors: {
  custom: {
    50: '#a284f3',
    500: '#6e51ec',
    950: '#000000',
  },
}
SCSS
$custom: #6e51ec;
$custom-light: #a284f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6e51ec",
  "rgb": {
    "r": 110,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 251.226,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55622,
    "c": 0.22138,
    "h": 285.2
  },
  "luminance": 0.15256
}

Semantic roles & 50–950 ramp

primary
#6E51EC
secondary
#DEE9B0
accent
#DD09B5
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6E51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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