#6B51DB#6B51DB

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

Color values

HEX#6B51DB
RGBrgb(107, 81, 219)
HSLhsl(251, 66%, 59%)
HSVhsv(251, 63%, 86%)
CMYKcmyk(51.1%, 63%, 0%, 14.1%)
CIE-LABlab(44.41, 45.62, -67.29)
CIE-LCHlch(44.41, 81.29, 304.14°)
OKLaboklab(54.01% 0.0561 -0.1929)
OKLCHoklch(54.01% 0.201 286.2)
XYZxyz(21.7882, 14.1240, 68.5822)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B51DB #C1DB51
analogous
#517CDB #6B51DB #B051DB
triadic
#6B51DB #DB6B51 #51DB6B
tetradic
#6B51DB #DB517C #C1DB51 #51DBB0
square
#6B51DB #DB517C #C1DB51 #51DBB0
split-complementary
#6B51DB #DBB051 #7CDB51
monochromatic
#341E93 #4729C6 #6B51DB #9684E5 #C1B6F0

Accessibility & contrast

On white

5.49
#6B51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#6B51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B51DB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B51DB#FFFFFF#000000##FFFFFF
##6B51DB1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b51db;
/* rgb */ color: rgb(107, 81, 219);
/* oklch */ color: oklch(54.0% 0.201 286.2);
Tailwind
colors: {
  custom: {
    50: '#9e83e7',
    500: '#6b51db',
    950: '#000000',
  },
}
SCSS
$custom: #6b51db;
$custom-light: #9e83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b51db",
  "rgb": {
    "r": 107,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 251.304,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54012,
    "c": 0.20092,
    "h": 286.2
  },
  "luminance": 0.14125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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