#6D51EC#6D51EC

#6D51EC is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.5% C 0.221 H 284.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#6D51EC
RGBrgb(109, 81, 236)
HSLhsl(251, 80%, 62%)
HSVhsv(251, 66%, 93%)
CMYKcmyk(53.8%, 65.7%, 0%, 7.5%)
CIE-LABlab(45.89, 50.92, -74.50)
CIE-LCHlch(45.89, 90.24, 304.36°)
OKLaboklab(55.54% 0.0568 -0.2141)
OKLCHoklch(55.54% 0.221 284.9)
XYZxyz(24.3848, 15.1908, 80.9878)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51EC #D0EC51
analogous
#5182EC #6D51EC #BB51EC
triadic
#6D51EC #EC6D51 #51EC6D
tetradic
#6D51EC #EC5182 #D0EC51 #51ECBB
square
#6D51EC #EC5182 #D0EC51 #51ECBB
split-complementary
#6D51EC #ECBB51 #82EC51
monochromatic
#2F13AF #3F1AE6 #6D51EC #9B88F2 #CABFF8

Accessibility & contrast

On white

5.20
#6D51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#6D51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51EC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51EC#FFFFFF#000000##FFFFFF
##6D51EC1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d51ec;
/* rgb */ color: rgb(109, 81, 236);
/* oklch */ color: oklch(55.5% 0.221 284.9);
Tailwind
colors: {
  custom: {
    50: '#a284f3',
    500: '#6d51ec',
    950: '#000000',
  },
}
SCSS
$custom: #6d51ec;
$custom-light: #a284f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51ec",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 250.839,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55538,
    "c": 0.22149,
    "h": 284.9
  },
  "luminance": 0.15192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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