#7A51EC#7A51EC

#7A51EC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.221 H 289.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7A51EC
RGBrgb(122, 81, 236)
HSLhsl(256, 80%, 62%)
HSVhsv(256, 66%, 93%)
CMYKcmyk(48.3%, 65.7%, 0%, 7.5%)
CIE-LABlab(47.08, 53.13, -72.52)
CIE-LCHlch(47.08, 89.90, 306.23°)
OKLaboklab(56.67% 0.0741 -0.2078)
OKLCHoklch(56.67% 0.221 289.6)
XYZxyz(26.1044, 16.0775, 81.0684)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51EC #C3EC51
analogous
#5176EC #7A51EC #C851EC
triadic
#7A51EC #EC7A51 #51EC7A
tetradic
#7A51EC #EC5176 #C3EC51 #51ECC8
square
#7A51EC #EC5176 #C3EC51 #51ECC8
split-complementary
#7A51EC #ECC851 #76EC51
monochromatic
#3C13AF #501AE6 #7A51EC #A488F2 #CEBFF8

Accessibility & contrast

On white

4.98
#7A51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7A51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51EC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51EC#FFFFFF#000000##FFFFFF
##7A51EC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#547798
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a51ec;
/* rgb */ color: rgb(122, 81, 236);
/* oklch */ color: oklch(56.7% 0.221 289.6);
Tailwind
colors: {
  custom: {
    50: '#a984f3',
    500: '#7a51ec',
    950: '#000000',
  },
}
SCSS
$custom: #7a51ec;
$custom-light: #a984f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51ec",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 255.871,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56674,
    "c": 0.22066,
    "h": 289.6
  },
  "luminance": 0.16079
}

Semantic roles & 50–950 ramp

primary
#7A51EC
secondary
#DAE9B0
accent
#DD09A5
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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