#6A51E5#6A51E5

#6A51E5 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.7% C 0.213 H 284.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#6A51E5
RGBrgb(106, 81, 229)
HSLhsl(250, 74%, 61%)
HSVhsv(250, 65%, 90%)
CMYKcmyk(53.7%, 64.6%, 0%, 10.2%)
CIE-LABlab(45.09, 48.38, -71.87)
CIE-LCHlch(45.09, 86.63, 303.95°)
OKLaboklab(54.72% 0.0538 -0.2064)
OKLCHoklch(54.72% 0.213 284.6)
XYZxyz(23.0249, 14.6049, 75.7193)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51E5 #CCE551
analogous
#5182E5 #6A51E5 #B451E5
triadic
#6A51E5 #E56A51 #51E56A
tetradic
#6A51E5 #E55182 #CCE551 #51E5B4
square
#6A51E5 #E55182 #CCE551 #51E5B4
split-complementary
#6A51E5 #E5B451 #82E551
monochromatic
#3018A3 #3F20D8 #6A51E5 #9886ED #C5BBF5

Accessibility & contrast

On white

5.36
#6A51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#6A51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51E5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51E5#FFFFFF#000000##FFFFFF
##6A51E51.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#0066E2
Tritanopia (blue-blind)
#347694
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6a51e5;
/* rgb */ color: rgb(106, 81, 229);
/* oklch */ color: oklch(54.7% 0.213 284.6);
Tailwind
colors: {
  custom: {
    50: '#9f83ee',
    500: '#6a51e5',
    950: '#000000',
  },
}
SCSS
$custom: #6a51e5;
$custom-light: #9f83ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51e5",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 250.135,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54722,
    "c": 0.21332,
    "h": 284.6
  },
  "luminance": 0.14606
}

Semantic roles & 50–950 ramp

primary
#6A51E5
secondary
#DBE5AD
accent
#D60FB5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6A51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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