#7A51DC#7A51DC

#7A51DC is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.4% C 0.202 H 292.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7A51DC
RGBrgb(122, 81, 220)
HSLhsl(258, 67%, 59%)
HSVhsv(258, 63%, 86%)
CMYKcmyk(44.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(45.89, 48.74, -65.38)
CIE-LCHlch(45.89, 81.55, 306.70°)
OKLaboklab(55.45% 0.0759 -0.1869)
OKLCHoklch(55.45% 0.202 292.1)
XYZxyz(23.8832, 15.1890, 69.3697)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51DC #B3DC51
analogous
#516EDC #7A51DC #C051DC
triadic
#7A51DC #DC7A51 #51DC7A
tetradic
#7A51DC #DC516E #B3DC51 #51DCC0
square
#7A51DC #DC516E #B3DC51 #51DCC0
split-complementary
#7A51DC #DCC051 #6EDC51
monochromatic
#411E95 #5728C8 #7A51DC #A184E6 #C8B7F0

Accessibility & contrast

On white

5.20
#7A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7A51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51DC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51DC#FFFFFF#000000##FFFFFF
##7A51DC1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5D728F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a51dc;
/* rgb */ color: rgb(122, 81, 220);
/* oklch */ color: oklch(55.4% 0.202 292.1);
Tailwind
colors: {
  custom: {
    50: '#a784e8',
    500: '#7a51dc',
    950: '#000000',
  },
}
SCSS
$custom: #7a51dc;
$custom-light: #a784e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51dc",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 257.698,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.20169,
    "h": 292.1
  },
  "luminance": 0.1519
}

Semantic roles & 50–950 ramp

primary
#7A51DC
secondary
#D0E0A9
accent
#E93EB7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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