#7A51CE#7A51CE

#7A51CE is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.185 H 294.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7A51CE
RGBrgb(122, 81, 206)
HSLhsl(260, 56%, 56%)
HSVhsv(260, 61%, 81%)
CMYKcmyk(40.8%, 60.7%, 0%, 19.2%)
CIE-LABlab(44.91, 44.94, -58.96)
CIE-LCHlch(44.91, 74.13, 307.32°)
OKLaboklab(54.42% 0.0769 -0.168)
OKLCHoklch(54.42% 0.185 294.6)
XYZxyz(22.1061, 14.4781, 60.0104)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51CE #A5CE51
analogous
#5167CE #7A51CE #B951CE
triadic
#7A51CE #CE7A51 #51CE7A
tetradic
#7A51CE #CE5167 #A5CE51 #51CEB9
square
#7A51CE #CE5167 #A5CE51 #51CEB9
split-complementary
#7A51CE #CEB951 #67CE51
monochromatic
#422480 #5B32B0 #7A51CE #9F81DB #C3B1E9

Accessibility & contrast

On white

5.39
#7A51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7A51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51CE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51CE#FFFFFF#000000##FFFFFF
##7A51CE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#0568CB
Tritanopia (blue-blind)
#646D88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a51ce;
/* rgb */ color: rgb(122, 81, 206);
/* oklch */ color: oklch(54.4% 0.185 294.6);
Tailwind
colors: {
  custom: {
    50: '#a684de',
    500: '#7a51ce',
    950: '#000000',
  },
}
SCSS
$custom: #7a51ce;
$custom-light: #a684de;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51ce",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 259.68,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54424,
    "c": 0.18472,
    "h": 294.6
  },
  "luminance": 0.14479
}

Semantic roles & 50–950 ramp

primary
#7A51CE
secondary
#C6D7A4
accent
#DF48AE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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