#6D51F1#6D51F1

#6D51F1 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.227 H 284.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#6D51F1
RGBrgb(109, 81, 241)
HSLhsl(251, 85%, 63%)
HSVhsv(251, 66%, 95%)
CMYKcmyk(54.8%, 66.4%, 0%, 5.5%)
CIE-LABlab(46.29, 52.38, -76.66)
CIE-LCHlch(46.29, 92.84, 304.34°)
OKLaboklab(55.95% 0.0562 -0.2204)
OKLCHoklch(55.95% 0.227 284.3)
XYZxyz(25.1215, 15.4855, 84.8673)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51F1 #D5F151
analogous
#5185F1 #6D51F1 #BD51F1
triadic
#6D51F1 #F16D51 #51F16D
tetradic
#6D51F1 #F15185 #D5F151 #51F1BD
square
#6D51F1 #F15185 #D5F151 #51F1BD
split-complementary
#6D51F1 #F1BD51 #85F151
monochromatic
#2D0FB9 #3D18EC #6D51F1 #9D8AF6 #CCC2FA

Accessibility & contrast

On white

5.13
#6D51F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#6D51F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51F1
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51F1#FFFFFF#000000##FFFFFF
##6D51F11.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F6
Deuteranopia (green-blind)
#0069EE
Tritanopia (blue-blind)
#2F7A9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6d51f1;
/* rgb */ color: rgb(109, 81, 241);
/* oklch */ color: oklch(55.9% 0.227 284.3);
Tailwind
colors: {
  custom: {
    50: '#a384f7',
    500: '#6d51f1',
    950: '#000000',
  },
}
SCSS
$custom: #6d51f1;
$custom-light: #a384f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51f1",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 241
  },
  "hsl": {
    "h": 250.5,
    "s": 85.106,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55948,
    "c": 0.22746,
    "h": 284.3
  },
  "luminance": 0.15487
}

Semantic roles & 50–950 ramp

primary
#6D51F1
secondary
#E2ECB2
accent
#E204BB
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6D51F1

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

Preview Lab → · Contrast checker → · Palette generator →

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