#6D51EA#6D51EA

#6D51EA is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.4% C 0.219 H 285.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#6D51EA
RGBrgb(109, 81, 234)
HSLhsl(251, 78%, 62%)
HSVhsv(251, 65%, 92%)
CMYKcmyk(53.4%, 65.4%, 0%, 8.2%)
CIE-LABlab(45.74, 50.34, -73.63)
CIE-LCHlch(45.74, 89.19, 304.36°)
OKLaboklab(55.38% 0.0571 -0.2115)
OKLCHoklch(55.38% 0.219 285.1)
XYZxyz(24.0959, 15.0752, 79.4661)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51EA #CEEA51
analogous
#5182EA #6D51EA #B951EA
triadic
#6D51EA #EA6D51 #51EA6D
tetradic
#6D51EA #EA5182 #CEEA51 #51EAB9
square
#6D51EA #EA5182 #CEEA51 #51EAB9
split-complementary
#6D51EA #EAB951 #82EA51
monochromatic
#3015AC #401BE2 #6D51EA #9B88F1 #C9BEF7

Accessibility & contrast

On white

5.23
#6D51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#6D51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51EA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51EA#FFFFFF#000000##FFFFFF
##6D51EA1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0068E7
Tritanopia (blue-blind)
#377797
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6d51ea;
/* rgb */ color: rgb(109, 81, 234);
/* oklch */ color: oklch(55.4% 0.219 285.1);
Tailwind
colors: {
  custom: {
    50: '#a284f2',
    500: '#6d51ea',
    950: '#000000',
  },
}
SCSS
$custom: #6d51ea;
$custom-light: #a284f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51ea",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 250.98,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.55376,
    "c": 0.21908,
    "h": 285.1
  },
  "luminance": 0.15077
}

Semantic roles & 50–950 ramp

primary
#6D51EA
secondary
#DDE8AF
accent
#DB0BB5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6D51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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