#6D51F4#6D51F4

#6D51F4 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.231 H 284.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#6D51F4
RGBrgb(109, 81, 244)
HSLhsl(250, 88%, 64%)
HSVhsv(250, 67%, 96%)
CMYKcmyk(55.3%, 66.8%, 0%, 4.3%)
CIE-LABlab(46.53, 53.25, -77.95)
CIE-LCHlch(46.53, 94.40, 304.34°)
OKLaboklab(56.2% 0.0558 -0.2242)
OKLCHoklch(56.2% 0.231 284)
XYZxyz(25.5733, 15.6662, 87.2467)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51F4 #D8F451
analogous
#5186F4 #6D51F4 #BE51F4
triadic
#6D51F4 #F46D51 #51F46D
tetradic
#6D51F4 #F45186 #D8F451 #51F4BE
square
#6D51F4 #F45186 #D8F451 #51F4BE
split-complementary
#6D51F4 #F4BE51 #86F451
monochromatic
#2B0CBF #3D17F0 #6D51F4 #9D8BF8 #CEC4FB

Accessibility & contrast

On white

5.08
#6D51F4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#6D51F4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51F4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51F4#FFFFFF#000000##FFFFFF
##6D51F41.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F9
Deuteranopia (green-blind)
#0069F1
Tritanopia (blue-blind)
#2B7B9C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6d51f4;
/* rgb */ color: rgb(109, 81, 244);
/* oklch */ color: oklch(56.2% 0.231 284.0);
Tailwind
colors: {
  custom: {
    50: '#a384f9',
    500: '#6d51f4',
    950: '#000000',
  },
}
SCSS
$custom: #6d51f4;
$custom-light: #a384f9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51f4",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 244
  },
  "hsl": {
    "h": 250.307,
    "s": 88.108,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56196,
    "c": 0.23102,
    "h": 284
  },
  "luminance": 0.15668
}

Semantic roles & 50–950 ramp

primary
#6D51F4
secondary
#E3EDB4
accent
#E501BE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6D51F4

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

Preview Lab → · Contrast checker → · Palette generator →

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