#7A51DD#7A51DD

#7A51DD is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.5% C 0.203 H 291.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7A51DD
RGBrgb(122, 81, 221)
HSLhsl(258, 67%, 59%)
HSVhsv(258, 63%, 87%)
CMYKcmyk(44.8%, 63.3%, 0%, 13.3%)
CIE-LABlab(45.96, 49.01, -65.84)
CIE-LCHlch(45.96, 82.08, 306.67°)
OKLaboklab(55.52% 0.0758 -0.1882)
OKLCHoklch(55.52% 0.203 291.9)
XYZxyz(24.0160, 15.2421, 70.0692)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51DD #B4DD51
analogous
#516EDD #7A51DD #C051DD
triadic
#7A51DD #DD7A51 #51DD7A
tetradic
#7A51DD #DD516E #B4DD51 #51DDC0
square
#7A51DD #DD516E #B4DD51 #51DDC0
split-complementary
#7A51DD #DDC051 #6EDD51
monochromatic
#411D96 #5727C9 #7A51DD #A184E7 #C8B7F1

Accessibility & contrast

On white

5.19
#7A51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7A51DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51DD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51DD#FFFFFF#000000##FFFFFF
##7A51DD1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#5D7290
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a51dd;
/* rgb */ color: rgb(122, 81, 221);
/* oklch */ color: oklch(55.5% 0.203 291.9);
Tailwind
colors: {
  custom: {
    50: '#a884e8',
    500: '#7a51dd',
    950: '#000000',
  },
}
SCSS
$custom: #7a51dd;
$custom-light: #a884e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51dd",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 257.571,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55522,
    "c": 0.20289,
    "h": 291.9
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#7A51DD
secondary
#D0E0AA
accent
#EA3EB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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