#6D51F2#6D51F2

#6D51F2 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.0% C 0.229 H 284.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#6D51F2
RGBrgb(109, 81, 242)
HSLhsl(250, 86%, 63%)
HSVhsv(250, 67%, 95%)
CMYKcmyk(55%, 66.5%, 0%, 5.1%)
CIE-LABlab(46.37, 52.67, -77.09)
CIE-LCHlch(46.37, 93.36, 304.34°)
OKLaboklab(56.03% 0.056 -0.2217)
OKLCHoklch(56.03% 0.229 284.2)
XYZxyz(25.2712, 15.5454, 85.6561)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D51F2 #D6F251
analogous
#5185F2 #6D51F2 #BD51F2
triadic
#6D51F2 #F26D51 #51F26D
tetradic
#6D51F2 #F25185 #D6F251 #51F2BD
square
#6D51F2 #F25185 #D6F251 #51F2BD
split-complementary
#6D51F2 #F2BD51 #85F251
monochromatic
#2C0EBB #3D18EE #6D51F2 #9D8AF6 #CDC3FB

Accessibility & contrast

On white

5.11
#6D51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#6D51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D51F2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D51F2#FFFFFF#000000##FFFFFF
##6D51F21.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#0069EF
Tritanopia (blue-blind)
#2E7A9B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6d51f2;
/* rgb */ color: rgb(109, 81, 242);
/* oklch */ color: oklch(56.0% 0.229 284.2);
Tailwind
colors: {
  custom: {
    50: '#a384f7',
    500: '#6d51f2',
    950: '#000000',
  },
}
SCSS
$custom: #6d51f2;
$custom-light: #a384f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d51f2",
  "rgb": {
    "r": 109,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 250.435,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5603,
    "c": 0.22865,
    "h": 284.2
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#6D51F2
secondary
#E2ECB3
accent
#E303BC
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6D51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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