#7A4DBA#7A4DBA

#7A4DBA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.166 H 299.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7A4DBA
RGBrgb(122, 77, 186)
HSLhsl(265, 44%, 52%)
HSVhsv(265, 59%, 73%)
CMYKcmyk(34.4%, 58.6%, 0%, 27.1%)
CIE-LABlab(42.75, 41.87, -50.84)
CIE-LCHlch(42.75, 65.87, 309.48°)
OKLaboklab(52.42% 0.0822 -0.1441)
OKLCHoklch(52.42% 0.166 299.7)
XYZxyz(19.5407, 12.9903, 47.9228)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4DBA #8DBA4D
analogous
#4D57BA #7A4DBA #B14DBA
triadic
#7A4DBA #BA7A4D #4DBA7A
tetradic
#7A4DBA #BA4D57 #8DBA4D #4DBAB1
square
#7A4DBA #BA4D57 #8DBA4D #4DBAB1
split-complementary
#7A4DBA #BAB14D #57BA4D
monochromatic
#412765 #5D3891 #7A4DBA #9B79CB #BCA5DC

Accessibility & contrast

On white

5.84
#7A4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7A4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4DBA
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4DBA#FFFFFF#000000##FFFFFF
##7A4DBA1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BE
Deuteranopia (green-blind)
#2A64B8
Tritanopia (blue-blind)
#6C647C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7a4dba;
/* rgb */ color: rgb(122, 77, 186);
/* oklch */ color: oklch(52.4% 0.166 299.7);
Tailwind
colors: {
  custom: {
    50: '#a481cf',
    500: '#7a4dba',
    950: '#000000',
  },
}
SCSS
$custom: #7a4dba;
$custom-light: #a481cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4dba",
  "rgb": {
    "r": 122,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 264.771,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52422,
    "c": 0.16593,
    "h": 299.7
  },
  "luminance": 0.12991
}

Semantic roles & 50–950 ramp

primary
#7A4DBA
secondary
#B6C999
accent
#D4549F
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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