#6F51EB#6F51EB

#6F51EB is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.220 H 285.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6F51EB
RGBrgb(111, 81, 235)
HSLhsl(252, 79%, 62%)
HSVhsv(252, 66%, 92%)
CMYKcmyk(52.8%, 65.5%, 0%, 7.8%)
CIE-LABlab(45.99, 50.96, -73.77)
CIE-LCHlch(45.99, 89.66, 304.64°)
OKLaboklab(55.63% 0.0596 -0.2119)
OKLCHoklch(55.63% 0.22 285.7)
XYZxyz(24.4889, 15.2612, 80.2365)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F51EB #CDEB51
analogous
#5180EB #6F51EB #BC51EB
triadic
#6F51EB #EB6F51 #51EB6F
tetradic
#6F51EB #EB5180 #CDEB51 #51EBBC
square
#6F51EB #EB5180 #CDEB51 #51EBBC
split-complementary
#6F51EB #EBBC51 #80EB51
monochromatic
#3214AE #421AE5 #6F51EB #9C88F1 #CABFF8

Accessibility & contrast

On white

5.18
#6F51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#6F51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F51EB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F51EB#FFFFFF#000000##FFFFFF
##6F51EB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0068E8
Tritanopia (blue-blind)
#3C7897
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6f51eb;
/* rgb */ color: rgb(111, 81, 235);
/* oklch */ color: oklch(55.6% 0.220 285.7);
Tailwind
colors: {
  custom: {
    50: '#a384f3',
    500: '#6f51eb',
    950: '#000000',
  },
}
SCSS
$custom: #6f51eb;
$custom-light: #a384f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f51eb",
  "rgb": {
    "r": 111,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 251.688,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55625,
    "c": 0.22009,
    "h": 285.7
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#6F51EB
secondary
#DDE8B0
accent
#DC0AB3
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6F51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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