#6C51DB#6C51DB

#6C51DB is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.1% C 0.201 H 286.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#6C51DB
RGBrgb(108, 81, 219)
HSLhsl(252, 66%, 59%)
HSVhsv(252, 63%, 86%)
CMYKcmyk(50.7%, 63%, 0%, 14.1%)
CIE-LABlab(44.50, 45.80, -67.14)
CIE-LCHlch(44.50, 81.27, 304.30°)
OKLaboklab(54.1% 0.0574 -0.1925)
OKLCHoklch(54.1% 0.201 286.6)
XYZxyz(21.9092, 14.1864, 68.5879)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51DB #C0DB51
analogous
#517BDB #6C51DB #B151DB
triadic
#6C51DB #DB6C51 #51DB6C
tetradic
#6C51DB #DB517B #C0DB51 #51DBB1
square
#6C51DB #DB517B #C0DB51 #51DBB1
split-complementary
#6C51DB #DBB151 #7BDB51
monochromatic
#351E93 #4829C6 #6C51DB #9784E5 #C2B6F0

Accessibility & contrast

On white

5.47
#6C51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#6C51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51DB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51DB#FFFFFF#000000##FFFFFF
##6C51DB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c51db;
/* rgb */ color: rgb(108, 81, 219);
/* oklch */ color: oklch(54.1% 0.201 286.6);
Tailwind
colors: {
  custom: {
    50: '#9f83e7',
    500: '#6c51db',
    950: '#000000',
  },
}
SCSS
$custom: #6c51db;
$custom-light: #9f83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51db",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 251.739,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.20085,
    "h": 286.6
  },
  "luminance": 0.14187
}

Semantic roles & 50–950 ramp

primary
#6C51DB
secondary
#D4DFA9
accent
#E93FC7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6C51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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