#6B51BC#6B51BC

#6B51BC is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.161 H 290.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#6B51BC
RGBrgb(107, 81, 188)
HSLhsl(255, 44%, 53%)
HSVhsv(255, 57%, 74%)
CMYKcmyk(43.1%, 56.9%, 0%, 26.3%)
CIE-LABlab(42.22, 36.62, -52.95)
CIE-LCHlch(42.22, 64.38, 304.67°)
OKLaboklab(51.71% 0.0575 -0.1508)
OKLCHoklch(51.71% 0.161 290.9)
XYZxyz(18.0804, 12.6409, 49.0545)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B51BC #A2BC51
analogous
#516DBC #6B51BC #A051BC
triadic
#6B51BC #BC6B51 #51BC6B
tetradic
#6B51BC #BC516D #A2BC51 #51BCA0
square
#6B51BC #BC516D #A2BC51 #51BCA0
split-complementary
#6B51BC #BCA051 #6DBC51
monochromatic
#39296A #503A96 #6B51BC #917DCD #B6A9DE

Accessibility & contrast

On white

5.95
#6B51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6B51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B51BC
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B51BC#FFFFFF#000000##FFFFFF
##6B51BC1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1265C0
Deuteranopia (green-blind)
#1A61BA
Tritanopia (blue-blind)
#54687E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6b51bc;
/* rgb */ color: rgb(107, 81, 188);
/* oklch */ color: oklch(51.7% 0.161 290.9);
Tailwind
colors: {
  custom: {
    50: '#9b83d1',
    500: '#6b51bc',
    950: '#000000',
  },
}
SCSS
$custom: #6b51bc;
$custom-light: #9b83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b51bc",
  "rgb": {
    "r": 107,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 254.579,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51713,
    "c": 0.16136,
    "h": 290.9
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#6B51BC
secondary
#C0CC9D
accent
#D454B5
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #6B51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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