#7A51E9#7A51E9

#7A51E9 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.217 H 290.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7A51E9
RGBrgb(122, 81, 233)
HSLhsl(256, 78%, 62%)
HSVhsv(256, 65%, 91%)
CMYKcmyk(47.6%, 65.2%, 0%, 8.6%)
CIE-LABlab(46.85, 52.30, -71.20)
CIE-LCHlch(46.85, 88.34, 306.30°)
OKLaboklab(56.44% 0.0745 -0.204)
OKLCHoklch(56.44% 0.217 290.1)
XYZxyz(25.6723, 15.9046, 78.7922)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51E9 #C0E951
analogous
#5174E9 #7A51E9 #C651E9
triadic
#7A51E9 #E97A51 #51E97A
tetradic
#7A51E9 #E95174 #C0E951 #51E9C6
square
#7A51E9 #E95174 #C0E951 #51E9C6
split-complementary
#7A51E9 #E9C651 #74E951
monochromatic
#3E16AA #511CE0 #7A51E9 #A487F0 #CDBEF7

Accessibility & contrast

On white

5.02
#7A51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7A51E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51E9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51E9#FFFFFF#000000##FFFFFF
##7A51E91.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#006BE6
Tritanopia (blue-blind)
#567696
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a51e9;
/* rgb */ color: rgb(122, 81, 233);
/* oklch */ color: oklch(56.4% 0.217 290.1);
Tailwind
colors: {
  custom: {
    50: '#a984f1',
    500: '#7a51e9',
    950: '#000000',
  },
}
SCSS
$custom: #7a51e9;
$custom-light: #a984f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51e9",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 256.184,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56439,
    "c": 0.21714,
    "h": 290.1
  },
  "luminance": 0.15906
}

Semantic roles & 50–950 ramp

primary
#7A51E9
secondary
#D8E7AF
accent
#DA0CA2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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