#7A51EE#7A51EE

#7A51EE is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.223 H 289.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7A51EE
RGBrgb(122, 81, 238)
HSLhsl(256, 82%, 63%)
HSVhsv(256, 66%, 93%)
CMYKcmyk(48.7%, 66%, 0%, 6.7%)
CIE-LABlab(47.23, 53.68, -73.40)
CIE-LCHlch(47.23, 90.93, 306.18°)
OKLaboklab(56.83% 0.0738 -0.2104)
OKLCHoklch(56.83% 0.223 289.3)
XYZxyz(26.3966, 16.1944, 82.6073)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51EE #C5EE51
analogous
#5176EE #7A51EE #C951EE
triadic
#7A51EE #EE7A51 #51EE7A
tetradic
#7A51EE #EE5176 #C5EE51 #51EEC9
square
#7A51EE #EE5176 #C5EE51 #51EEC9
split-complementary
#7A51EE #EEC951 #76EE51
monochromatic
#3C11B3 #4F19E9 #7A51EE #A589F3 #CFC1F9

Accessibility & contrast

On white

4.95
#7A51EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7A51EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51EE
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51EE#FFFFFF#000000##FFFFFF
##7A51EE1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F3
Deuteranopia (green-blind)
#006CEB
Tritanopia (blue-blind)
#527899
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a51ee;
/* rgb */ color: rgb(122, 81, 238);
/* oklch */ color: oklch(56.8% 0.223 289.3);
Tailwind
colors: {
  custom: {
    50: '#a984f5',
    500: '#7a51ee',
    950: '#000000',
  },
}
SCSS
$custom: #7a51ee;
$custom-light: #a984f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51ee",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 255.669,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.22301,
    "h": 289.3
  },
  "luminance": 0.16195
}

Semantic roles & 50–950 ramp

primary
#7A51EE
secondary
#DBEAB1
accent
#DF07A6
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A51EE

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

Preview Lab → · Contrast checker → · Palette generator →

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