#6D51CF#6D51CF

#6D51CF is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.186 H 288.7°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#6D51CF
RGBrgb(109, 81, 207)
HSLhsl(253, 57%, 56%)
HSVhsv(253, 61%, 81%)
CMYKcmyk(47.3%, 60.9%, 0%, 18.8%)
CIE-LABlab(43.71, 42.51, -61.53)
CIE-LCHlch(43.71, 74.79, 304.64°)
OKLaboklab(53.27% 0.0596 -0.176)
OKLCHoklch(53.27% 0.186 288.7)
XYZxyz(20.5084, 13.6402, 60.5716)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51CF #B3CF51
analogous
#5174CF #6D51CF #AC51CF
triadic
#6D51CF #CF6D51 #51CF6D
tetradic
#6D51CF #CF5174 #B3CF51 #51CFAC
square
#6D51CF #CF5174 #B3CF51 #51CFAC
split-complementary
#6D51CF #CFAC51 #74CF51
monochromatic
#392482 #4E31B2 #6D51CF #9581DC #BDB1E9

Accessibility & contrast

On white

5.63
#6D51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#6D51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51CF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51CF#FFFFFF#000000##FFFFFF
##6D51CF1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0064CC
Tritanopia (blue-blind)
#4D6E88
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6d51cf;
/* rgb */ color: rgb(109, 81, 207);
/* oklch */ color: oklch(53.3% 0.186 288.7);
Tailwind
colors: {
  custom: {
    50: '#9e83de',
    500: '#6d51cf',
    950: '#000000',
  },
}
SCSS
$custom: #6d51cf;
$custom-light: #9e83de;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51cf",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 253.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.53271,
    "c": 0.18578,
    "h": 288.7
  },
  "luminance": 0.13641
}

Semantic roles & 50–950 ramp

primary
#6D51CF
secondary
#CCD8A4
accent
#E048BE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6D51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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