#6D51CD#6D51CD

#6D51CD is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.1% C 0.183 H 289.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#6D51CD
RGBrgb(109, 81, 205)
HSLhsl(254, 55%, 56%)
HSVhsv(254, 60%, 80%)
CMYKcmyk(46.8%, 60.5%, 0%, 19.6%)
CIE-LABlab(43.57, 41.94, -60.61)
CIE-LCHlch(43.57, 73.71, 304.68°)
OKLaboklab(53.12% 0.0597 -0.1733)
OKLCHoklch(53.12% 0.183 289)
XYZxyz(20.2654, 13.5430, 59.2921)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51CD #B1CD51
analogous
#5173CD #6D51CD #AB51CD
triadic
#6D51CD #CD6D51 #51CD6D
tetradic
#6D51CD #CD5173 #B1CD51 #51CDAB
square
#6D51CD #CD5173 #B1CD51 #51CDAB
split-complementary
#6D51CD #CDAB51 #73CD51
monochromatic
#39257F #4E32AF #6D51CD #9581DB #BDB0E8

Accessibility & contrast

On white

5.66
#6D51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#6D51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51CD
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51CD#FFFFFF#000000##FFFFFF
##6D51CD1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#4E6E87
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6d51cd;
/* rgb */ color: rgb(109, 81, 205);
/* oklch */ color: oklch(53.1% 0.183 289.0);
Tailwind
colors: {
  custom: {
    50: '#9e83dd',
    500: '#6d51cd',
    950: '#000000',
  },
}
SCSS
$custom: #6d51cd;
$custom-light: #9e83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51cd",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 253.548,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.53122,
    "c": 0.18325,
    "h": 289
  },
  "luminance": 0.13544
}

Semantic roles & 50–950 ramp

primary
#6D51CD
secondary
#CBD7A3
accent
#DF49BD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6D51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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