#7A4DB2#7A4DB2

#7A4DB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.156 H 301.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7A4DB2
RGBrgb(122, 77, 178)
HSLhsl(267, 40%, 50%)
HSVhsv(267, 57%, 70%)
CMYKcmyk(31.5%, 56.7%, 0%, 30.2%)
CIE-LABlab(42.25, 39.82, -46.95)
CIE-LCHlch(42.25, 61.57, 310.30°)
OKLaboklab(51.89% 0.0822 -0.1327)
OKLCHoklch(51.89% 0.156 301.8)
XYZxyz(18.7139, 12.6596, 43.5685)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4DB2 #85B24D
analogous
#4D52B2 #7A4DB2 #AD4DB2
triadic
#7A4DB2 #B27A4D #4DB27A
tetradic
#7A4DB2 #B24D52 #85B24D #4DB2AD
square
#7A4DB2 #B24D52 #85B24D #4DB2AD
split-complementary
#7A4DB2 #B2AD4D #52B24D
monochromatic
#3F285D #5D3B87 #7A4DB2 #9A78C4 #BAA2D7

Accessibility & contrast

On white

5.95
#7A4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7A4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4DB2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4DB2#FFFFFF#000000##FFFFFF
##7A4DB21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#3463B0
Tritanopia (blue-blind)
#6F6178
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a4db2;
/* rgb */ color: rgb(122, 77, 178);
/* oklch */ color: oklch(51.9% 0.156 301.8);
Tailwind
colors: {
  custom: {
    50: '#a480ca',
    500: '#7a4db2',
    950: '#000000',
  },
}
SCSS
$custom: #7a4db2;
$custom-light: #a480ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4db2",
  "rgb": {
    "r": 122,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 266.733,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.15609,
    "h": 301.8
  },
  "luminance": 0.1266
}

Semantic roles & 50–950 ramp

primary
#7A4DB2
secondary
#B0C497
accent
#CF589A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7A4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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