#6F51E2#6F51E2

#6F51E2 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 54.9% C 0.209 H 286.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#6F51E2
RGBrgb(111, 81, 226)
HSLhsl(252, 71%, 60%)
HSVhsv(252, 64%, 89%)
CMYKcmyk(50.9%, 64.2%, 0%, 11.4%)
CIE-LABlab(45.30, 48.37, -69.81)
CIE-LCHlch(45.30, 84.93, 304.72°)
OKLaboklab(54.91% 0.0606 -0.2002)
OKLCHoklch(54.91% 0.209 286.8)
XYZxyz(23.2214, 14.7542, 73.5610)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F51E2 #C4E251
analogous
#517BE2 #6F51E2 #B851E2
triadic
#6F51E2 #E26F51 #51E26F
tetradic
#6F51E2 #E2517B #C4E251 #51E2B8
square
#6F51E2 #E2517B #C4E251 #51E2B8
split-complementary
#6F51E2 #E2B851 #7BE251
monochromatic
#361A9E #4723D3 #6F51E2 #9A85EB #C6BAF3

Accessibility & contrast

On white

5.32
#6F51E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#6F51E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F51E2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F51E2#FFFFFF#000000##FFFFFF
##6F51E21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0067DF
Tritanopia (blue-blind)
#447592
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6f51e2;
/* rgb */ color: rgb(111, 81, 226);
/* oklch */ color: oklch(54.9% 0.209 286.8);
Tailwind
colors: {
  custom: {
    50: '#a283ec',
    500: '#6f51e2',
    950: '#000000',
  },
}
SCSS
$custom: #6f51e2;
$custom-light: #a283ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6f51e2",
  "rgb": {
    "r": 111,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 252.414,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54907,
    "c": 0.20922,
    "h": 286.8
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#6F51E2
secondary
#D8E3AC
accent
#D312AB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #6F51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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