#6F51E5#6F51E5

#6F51E5 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.1% C 0.213 H 286.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#6F51E5
RGBrgb(111, 81, 229)
HSLhsl(252, 74%, 61%)
HSVhsv(252, 65%, 90%)
CMYKcmyk(51.5%, 64.6%, 0%, 10.2%)
CIE-LABlab(45.52, 49.23, -71.14)
CIE-LCHlch(45.52, 86.51, 304.69°)
OKLaboklab(55.14% 0.0603 -0.2041)
OKLCHoklch(55.14% 0.213 286.5)
XYZxyz(23.6366, 14.9203, 75.7480)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F51E5 #C7E551
analogous
#517DE5 #6F51E5 #B951E5
triadic
#6F51E5 #E56F51 #51E56F
tetradic
#6F51E5 #E5517D #C7E551 #51E5B9
square
#6F51E5 #E5517D #C7E551 #51E5B9
split-complementary
#6F51E5 #E5B951 #7DE551
monochromatic
#3518A3 #4620D8 #6F51E5 #9B86ED #C7BBF5

Accessibility & contrast

On white

5.27
#6F51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#6F51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F51E5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F51E5#FFFFFF#000000##FFFFFF
##6F51E51.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#0067E2
Tritanopia (blue-blind)
#417694
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6f51e5;
/* rgb */ color: rgb(111, 81, 229);
/* oklch */ color: oklch(55.1% 0.213 286.5);
Tailwind
colors: {
  custom: {
    50: '#a284ee',
    500: '#6f51e5',
    950: '#000000',
  },
}
SCSS
$custom: #6f51e5;
$custom-light: #a284ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6f51e5",
  "rgb": {
    "r": 111,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 252.162,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55144,
    "c": 0.21286,
    "h": 286.5
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#6F51E5
secondary
#DAE5AD
accent
#D60FAE
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #6F51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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