#6E51F2#6E51F2

#6E51F2 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.1% C 0.229 H 284.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#6E51F2
RGBrgb(110, 81, 242)
HSLhsl(251, 86%, 63%)
HSVhsv(251, 67%, 95%)
CMYKcmyk(54.5%, 66.5%, 0%, 5.1%)
CIE-LABlab(46.46, 52.82, -76.95)
CIE-LCHlch(46.46, 93.33, 304.47°)
OKLaboklab(56.11% 0.0574 -0.2212)
OKLCHoklch(56.11% 0.229 284.5)
XYZxyz(25.3950, 15.6092, 85.6619)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E51F2 #D5F251
analogous
#5185F2 #6E51F2 #BE51F2
triadic
#6E51F2 #F26E51 #51F26E
tetradic
#6E51F2 #F25185 #D5F251 #51F2BE
square
#6E51F2 #F25185 #D5F251 #51F2BE
split-complementary
#6E51F2 #F2BE51 #85F251
monochromatic
#2D0EBB #3F18EE #6E51F2 #9D8AF6 #CDC3FB

Accessibility & contrast

On white

5.09
#6E51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#6E51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E51F2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E51F2#FFFFFF#000000##FFFFFF
##6E51F21.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6e51f2;
/* rgb */ color: rgb(110, 81, 242);
/* oklch */ color: oklch(56.1% 0.229 284.5);
Tailwind
colors: {
  custom: {
    50: '#a384f7',
    500: '#6e51f2',
    950: '#000000',
  },
}
SCSS
$custom: #6e51f2;
$custom-light: #a384f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6e51f2",
  "rgb": {
    "r": 110,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 250.807,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56112,
    "c": 0.22854,
    "h": 284.5
  },
  "luminance": 0.15611
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6E51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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