#7F51EB#7F51EB

#7F51EB is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.219 H 291.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7F51EB
RGBrgb(127, 81, 235)
HSLhsl(258, 79%, 62%)
HSVhsv(258, 66%, 92%)
CMYKcmyk(46%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.49, 53.75, -71.26)
CIE-LCHlch(47.49, 89.26, 307.03°)
OKLaboklab(57.06% 0.0809 -0.204)
OKLCHoklch(57.06% 0.219 291.6)
XYZxyz(26.6860, 16.3941, 80.3395)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51EB #BDEB51
analogous
#5170EB #7F51EB #CC51EB
triadic
#7F51EB #EB7F51 #51EB7F
tetradic
#7F51EB #EB5170 #BDEB51 #51EBCC
square
#7F51EB #EB5170 #BDEB51 #51EBCC
split-complementary
#7F51EB #EBCC51 #70EB51
monochromatic
#4214AE #571AE5 #7F51EB #A788F1 #D0BFF8

Accessibility & contrast

On white

4.91
#7F51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7F51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51EB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51EB#FFFFFF#000000##FFFFFF
##7F51EB1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#5E7697
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f51eb;
/* rgb */ color: rgb(127, 81, 235);
/* oklch */ color: oklch(57.1% 0.219 291.6);
Tailwind
colors: {
  custom: {
    50: '#ac85f2',
    500: '#7f51eb',
    950: '#000000',
  },
}
SCSS
$custom: #7f51eb;
$custom-light: #ac85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51eb",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 257.922,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57061,
    "c": 0.21947,
    "h": 291.6
  },
  "luminance": 0.16395
}

Semantic roles & 50–950 ramp

primary
#7F51EB
secondary
#D7E8B0
accent
#DC0A9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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