#6A51DA#6A51DA

#6A51DA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.200 H 285.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#6A51DA
RGBrgb(106, 81, 218)
HSLhsl(251, 65%, 59%)
HSVhsv(251, 63%, 85%)
CMYKcmyk(51.4%, 62.8%, 0%, 14.5%)
CIE-LABlab(44.25, 45.14, -66.98)
CIE-LCHlch(44.25, 80.78, 303.98°)
OKLaboklab(53.85% 0.0548 -0.1921)
OKLCHoklch(53.85% 0.2 285.9)
XYZxyz(21.5374, 14.0099, 67.8854)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51DA #C1DA51
analogous
#517CDA #6A51DA #AE51DA
triadic
#6A51DA #DA6A51 #51DA6A
tetradic
#6A51DA #DA517C #C1DA51 #51DAAE
square
#6A51DA #DA517C #C1DA51 #51DAAE
split-complementary
#6A51DA #DAAE51 #7CDA51
monochromatic
#341F92 #462AC4 #6A51DA #9583E5 #C0B6EF

Accessibility & contrast

On white

5.52
#6A51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#6A51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51DA
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51DA#FFFFFF#000000##FFFFFF
##6A51DA1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#3F728E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6a51da;
/* rgb */ color: rgb(106, 81, 218);
/* oklch */ color: oklch(53.8% 0.200 285.9);
Tailwind
colors: {
  custom: {
    50: '#9e83e6',
    500: '#6a51da',
    950: '#000000',
  },
}
SCSS
$custom: #6a51da;
$custom-light: #9e83e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51da",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 250.949,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53849,
    "c": 0.19976,
    "h": 285.9
  },
  "luminance": 0.14011
}

Semantic roles & 50–950 ramp

primary
#6A51DA
secondary
#D5DEA8
accent
#E840C9
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6A51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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