#7A51DE#7A51DE

#7A51DE is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.204 H 291.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7A51DE
RGBrgb(122, 81, 222)
HSLhsl(257, 68%, 59%)
HSVhsv(257, 64%, 87%)
CMYKcmyk(45%, 63.5%, 0%, 12.9%)
CIE-LABlab(46.04, 49.29, -66.29)
CIE-LCHlch(46.04, 82.60, 306.63°)
OKLaboklab(55.6% 0.0757 -0.1895)
OKLCHoklch(55.6% 0.204 291.8)
XYZxyz(24.1496, 15.2956, 70.7730)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51DE #B5DE51
analogous
#516FDE #7A51DE #C151DE
triadic
#7A51DE #DE7A51 #51DE7A
tetradic
#7A51DE #DE516F #B5DE51 #51DEC1
square
#7A51DE #DE516F #B5DE51 #51DEC1
split-complementary
#7A51DE #DEC151 #6FDE51
monochromatic
#411D98 #5627CB #7A51DE #A184E8 #C9B8F2

Accessibility & contrast

On white

5.17
#7A51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7A51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51DE
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51DE#FFFFFF#000000##FFFFFF
##7A51DE1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE2
Deuteranopia (green-blind)
#006ADB
Tritanopia (blue-blind)
#5C7290
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a51de;
/* rgb */ color: rgb(122, 81, 222);
/* oklch */ color: oklch(55.6% 0.204 291.8);
Tailwind
colors: {
  custom: {
    50: '#a884e9',
    500: '#7a51de',
    950: '#000000',
  },
}
SCSS
$custom: #7a51de;
$custom-light: #a884e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51de",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 257.447,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55597,
    "c": 0.20409,
    "h": 291.8
  },
  "luminance": 0.15296
}

Semantic roles & 50–950 ramp

primary
#7A51DE
secondary
#D1E1AA
accent
#EB3DB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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