#6A51DB#6A51DB

#6A51DB is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 53.9% C 0.201 H 285.8°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#6A51DB
RGBrgb(106, 81, 219)
HSLhsl(251, 66%, 59%)
HSVhsv(251, 63%, 86%)
CMYKcmyk(51.6%, 63%, 0%, 14.1%)
CIE-LABlab(44.32, 45.44, -67.43)
CIE-LCHlch(44.32, 81.31, 303.97°)
OKLaboklab(53.93% 0.0548 -0.1934)
OKLCHoklch(53.93% 0.201 285.8)
XYZxyz(21.6687, 14.0624, 68.5766)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51DB #C2DB51
analogous
#517DDB #6A51DB #AF51DB
triadic
#6A51DB #DB6A51 #51DB6A
tetradic
#6A51DB #DB517D #C2DB51 #51DBAF
square
#6A51DB #DB517D #C2DB51 #51DBAF
split-complementary
#6A51DB #DBAF51 #7DDB51
monochromatic
#341E93 #4529C6 #6A51DB #9584E5 #C1B6F0

Accessibility & contrast

On white

5.51
#6A51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#6A51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51DB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51DB#FFFFFF#000000##FFFFFF
##6A51DB1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0065D8
Tritanopia (blue-blind)
#3E728F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6a51db;
/* rgb */ color: rgb(106, 81, 219);
/* oklch */ color: oklch(53.9% 0.201 285.8);
Tailwind
colors: {
  custom: {
    50: '#9e83e7',
    500: '#6a51db',
    950: '#000000',
  },
}
SCSS
$custom: #6a51db;
$custom-light: #9e83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51db",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 250.87,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53927,
    "c": 0.20101,
    "h": 285.8
  },
  "luminance": 0.14064
}

Semantic roles & 50–950 ramp

primary
#6A51DB
secondary
#D5DFA9
accent
#E93FCA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6A51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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