#7A51CA#7A51CA

#7A51CA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.180 H 295.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7A51CA
RGBrgb(122, 81, 202)
HSLhsl(260, 53%, 55%)
HSVhsv(260, 60%, 79%)
CMYKcmyk(39.6%, 59.9%, 0%, 20.8%)
CIE-LABlab(44.64, 43.86, -57.09)
CIE-LCHlch(44.64, 72.00, 307.54°)
OKLaboklab(54.14% 0.077 -0.1625)
OKLCHoklch(54.14% 0.18 295.4)
XYZxyz(21.6263, 14.2863, 57.4838)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51CA #A1CA51
analogous
#5164CA #7A51CA #B751CA
triadic
#7A51CA #CA7A51 #51CA7A
tetradic
#7A51CA #CA5164 #A1CA51 #51CAB7
square
#7A51CA #CA5164 #A1CA51 #51CAB7
split-complementary
#7A51CA #CAB751 #64CA51
monochromatic
#43257B #5C34AA #7A51CA #9E80D8 #C2AFE7

Accessibility & contrast

On white

5.44
#7A51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7A51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51CA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51CA#FFFFFF#000000##FFFFFF
##7A51CA1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1568C7
Tritanopia (blue-blind)
#666C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a51ca;
/* rgb */ color: rgb(122, 81, 202);
/* oklch */ color: oklch(54.1% 0.180 295.4);
Tailwind
colors: {
  custom: {
    50: '#a684db',
    500: '#7a51ca',
    950: '#000000',
  },
}
SCSS
$custom: #7a51ca;
$custom-light: #a684db;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51ca",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 260.331,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54141,
    "c": 0.17982,
    "h": 295.4
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#7A51CA
secondary
#C4D5A2
accent
#DD4BAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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