#7A51ED#7A51ED

#7A51ED is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.222 H 289.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7A51ED
RGBrgb(122, 81, 237)
HSLhsl(256, 81%, 62%)
HSVhsv(256, 66%, 93%)
CMYKcmyk(48.5%, 65.8%, 0%, 7.1%)
CIE-LABlab(47.15, 53.40, -72.96)
CIE-LCHlch(47.15, 90.42, 306.20°)
OKLaboklab(56.75% 0.074 -0.2091)
OKLCHoklch(56.75% 0.222 289.5)
XYZxyz(26.2501, 16.1358, 81.8357)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51ED #C4ED51
analogous
#5176ED #7A51ED #C851ED
triadic
#7A51ED #ED7A51 #51ED7A
tetradic
#7A51ED #ED5176 #C4ED51 #51EDC8
square
#7A51ED #ED5176 #C4ED51 #51EDC8
split-complementary
#7A51ED #EDC851 #76ED51
monochromatic
#3C12B1 #501AE7 #7A51ED #A488F3 #CFC0F8

Accessibility & contrast

On white

4.97
#7A51ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7A51ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51ED
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51ED#FFFFFF#000000##FFFFFF
##7A51ED1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F2
Deuteranopia (green-blind)
#006CEA
Tritanopia (blue-blind)
#537898
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a51ed;
/* rgb */ color: rgb(122, 81, 237);
/* oklch */ color: oklch(56.8% 0.222 289.5);
Tailwind
colors: {
  custom: {
    50: '#a984f4',
    500: '#7a51ed',
    950: '#000000',
  },
}
SCSS
$custom: #7a51ed;
$custom-light: #a984f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51ed",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 237
  },
  "hsl": {
    "h": 255.769,
    "s": 81.25,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56752,
    "c": 0.22183,
    "h": 289.5
  },
  "luminance": 0.16137
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A51ED

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

Preview Lab → · Contrast checker → · Palette generator →

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