#6B51CD#6B51CD

#6B51CD is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.9% C 0.183 H 288.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#6B51CD
RGBrgb(107, 81, 205)
HSLhsl(253, 55%, 56%)
HSVhsv(253, 60%, 80%)
CMYKcmyk(47.8%, 60.5%, 0%, 19.6%)
CIE-LABlab(43.39, 41.53, -60.92)
CIE-LCHlch(43.39, 73.73, 304.28°)
OKLaboklab(52.94% 0.0571 -0.1742)
OKLCHoklch(52.94% 0.183 288.1)
XYZxyz(20.0221, 13.4176, 59.2806)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B51CD #B3CD51
analogous
#5175CD #6B51CD #A951CD
triadic
#6B51CD #CD6B51 #51CD6B
tetradic
#6B51CD #CD5175 #B3CD51 #51CDA9
square
#6B51CD #CD5175 #B3CD51 #51CDA9
split-complementary
#6B51CD #CDA951 #75CD51
monochromatic
#38257F #4C32AF #6B51CD #9381DB #BCB0E8

Accessibility & contrast

On white

5.70
#6B51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#6B51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B51CD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B51CD#FFFFFF#000000##FFFFFF
##6B51CD1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#4A6E87
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6b51cd;
/* rgb */ color: rgb(107, 81, 205);
/* oklch */ color: oklch(52.9% 0.183 288.1);
Tailwind
colors: {
  custom: {
    50: '#9d83dd',
    500: '#6b51cd',
    950: '#000000',
  },
}
SCSS
$custom: #6b51cd;
$custom-light: #9d83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b51cd",
  "rgb": {
    "r": 107,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 252.581,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52943,
    "c": 0.18333,
    "h": 288.1
  },
  "luminance": 0.13418
}

Semantic roles & 50–950 ramp

primary
#6B51CD
secondary
#CCD7A3
accent
#DF49BF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6B51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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