#7F51E4#7F51E4

#7F51E4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.211 H 292.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F51E4
RGBrgb(127, 81, 228)
HSLhsl(259, 73%, 61%)
HSVhsv(259, 64%, 89%)
CMYKcmyk(44.3%, 64.5%, 0%, 10.6%)
CIE-LABlab(46.97, 51.87, -68.15)
CIE-LCHlch(46.97, 85.65, 307.28°)
OKLaboklab(56.53% 0.0818 -0.1948)
OKLCHoklch(56.53% 0.211 292.8)
XYZxyz(25.6946, 15.9975, 75.1178)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51E4 #B6E451
analogous
#516CE4 #7F51E4 #C951E4
triadic
#7F51E4 #E47F51 #51E47F
tetradic
#7F51E4 #E4516C #B6E451 #51E4C9
square
#7F51E4 #E4516C #B6E451 #51E4C9
split-complementary
#7F51E4 #E4C951 #6CE451
monochromatic
#4419A2 #5A21D7 #7F51E4 #A686EC #CDBBF4

Accessibility & contrast

On white

5.00
#7F51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7F51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51E4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51E4#FFFFFF#000000##FFFFFF
##7F51E41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#627493
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f51e4;
/* rgb */ color: rgb(127, 81, 228);
/* oklch */ color: oklch(56.5% 0.211 292.8);
Tailwind
colors: {
  custom: {
    50: '#ab84ed',
    500: '#7f51e4',
    950: '#000000',
  },
}
SCSS
$custom: #7f51e4;
$custom-light: #ab84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51e4",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 258.776,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56527,
    "c": 0.2113,
    "h": 292.8
  },
  "luminance": 0.15998
}

Semantic roles & 50–950 ramp

primary
#7F51E4
secondary
#D3E4AC
accent
#D51098
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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