#7A51CD#7A51CD

#7A51CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.183 H 294.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7A51CD
RGBrgb(122, 81, 205)
HSLhsl(260, 55%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40.5%, 60.5%, 0%, 19.6%)
CIE-LABlab(44.84, 44.67, -58.49)
CIE-LCHlch(44.84, 73.60, 307.37°)
OKLaboklab(54.35% 0.0769 -0.1666)
OKLCHoklch(54.35% 0.184 294.8)
XYZxyz(21.9850, 14.4297, 59.3727)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51CD #A4CD51
analogous
#5166CD #7A51CD #B851CD
triadic
#7A51CD #CD7A51 #51CD7A
tetradic
#7A51CD #CD5166 #A4CD51 #51CDB8
square
#7A51CD #CD5166 #A4CD51 #51CDB8
split-complementary
#7A51CD #CDB851 #66CD51
monochromatic
#42257F #5B32AF #7A51CD #9E81DB #C3B0E8

Accessibility & contrast

On white

5.40
#7A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7A51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51CD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51CD#FFFFFF#000000##FFFFFF
##7A51CD1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0A68CA
Tritanopia (blue-blind)
#656D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a51cd;
/* rgb */ color: rgb(122, 81, 205);
/* oklch */ color: oklch(54.4% 0.183 294.8);
Tailwind
colors: {
  custom: {
    50: '#a684dd',
    500: '#7a51cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a51cd;
$custom-light: #a684dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51cd",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 259.839,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54353,
    "c": 0.1835,
    "h": 294.8
  },
  "luminance": 0.1443
}

Semantic roles & 50–950 ramp

primary
#7A51CD
secondary
#C6D7A3
accent
#DF49AD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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