#7A51CC#7A51CC

#7A51CC is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.182 H 295.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7A51CC
RGBrgb(122, 81, 204)
HSLhsl(260, 55%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40.2%, 60.3%, 0%, 20%)
CIE-LABlab(44.78, 44.40, -58.03)
CIE-LCHlch(44.78, 73.07, 307.42°)
OKLaboklab(54.28% 0.0769 -0.1652)
OKLCHoklch(54.28% 0.182 295)
XYZxyz(21.8647, 14.3816, 58.7390)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51CC #A3CC51
analogous
#5165CC #7A51CC #B751CC
triadic
#7A51CC #CC7A51 #51CC7A
tetradic
#7A51CC #CC5165 #A3CC51 #51CCB7
square
#7A51CC #CC5165 #A3CC51 #51CCB7
split-complementary
#7A51CC #CCB751 #65CC51
monochromatic
#42257E #5C33AD #7A51CC #9E80DA #C2B0E8

Accessibility & contrast

On white

5.42
#7A51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7A51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51CC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51CC#FFFFFF#000000##FFFFFF
##7A51CC1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0F68C9
Tritanopia (blue-blind)
#656C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a51cc;
/* rgb */ color: rgb(122, 81, 204);
/* oklch */ color: oklch(54.3% 0.182 295.0);
Tailwind
colors: {
  custom: {
    50: '#a684dc',
    500: '#7a51cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a51cc;
$custom-light: #a684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51cc",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 260,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54282,
    "c": 0.18227,
    "h": 295
  },
  "luminance": 0.14382
}

Semantic roles & 50–950 ramp

primary
#7A51CC
secondary
#C5D6A3
accent
#DE4AAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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