#7A51DA#7A51DA

#7A51DA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.199 H 292.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7A51DA
RGBrgb(122, 81, 218)
HSLhsl(258, 65%, 59%)
HSVhsv(258, 63%, 85%)
CMYKcmyk(44%, 62.8%, 0%, 14.5%)
CIE-LABlab(45.75, 48.19, -64.48)
CIE-LCHlch(45.75, 80.50, 306.78°)
OKLaboklab(55.3% 0.076 -0.1842)
OKLCHoklch(55.3% 0.199 292.4)
XYZxyz(23.6199, 15.0837, 67.9830)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51DA #B1DA51
analogous
#516CDA #7A51DA #BE51DA
triadic
#7A51DA #DA7A51 #51DA7A
tetradic
#7A51DA #DA516C #B1DA51 #51DABE
square
#7A51DA #DA516C #B1DA51 #51DABE
split-complementary
#7A51DA #DABE51 #6CDA51
monochromatic
#411F92 #582AC4 #7A51DA #A183E5 #C7B6EF

Accessibility & contrast

On white

5.23
#7A51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7A51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51DA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51DA#FFFFFF#000000##FFFFFF
##7A51DA1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#006AD7
Tritanopia (blue-blind)
#5E718E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a51da;
/* rgb */ color: rgb(122, 81, 218);
/* oklch */ color: oklch(55.3% 0.199 292.4);
Tailwind
colors: {
  custom: {
    50: '#a784e6',
    500: '#7a51da',
    950: '#000000',
  },
}
SCSS
$custom: #7a51da;
$custom-light: #a784e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51da",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 257.956,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55298,
    "c": 0.19929,
    "h": 292.4
  },
  "luminance": 0.15084
}

Semantic roles & 50–950 ramp

primary
#7A51DA
secondary
#CEDEA8
accent
#E840B6
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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