#7D4ABA#7D4ABA

#7D4ABA is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.3% C 0.171 H 301.8°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7D4ABA
RGBrgb(125, 74, 186)
HSLhsl(267, 45%, 51%)
HSVhsv(267, 60%, 73%)
CMYKcmyk(32.8%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.46, 44.23, -51.28)
CIE-LCHlch(42.46, 67.72, 310.78°)
OKLaboklab(52.29% 0.0899 -0.1453)
OKLCHoklch(52.29% 0.171 301.8)
XYZxyz(19.7671, 12.8026, 47.8746)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4ABA #87BA4A
analogous
#4A4FBA #7D4ABA #B54ABA
triadic
#7D4ABA #BA7D4A #4ABA7D
tetradic
#7D4ABA #BA4A4F #87BA4A #4ABAB5
square
#7D4ABA #BA4A4F #87BA4A #4ABAB5
split-complementary
#7D4ABA #BAB54A #4FBA4A
monochromatic
#422664 #5F3790 #7D4ABA #9D76CB #BDA3DC

Accessibility & contrast

On white

5.90
#7D4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7D4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4ABA
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4ABA#FFFFFF#000000##FFFFFF
##7D4ABA1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0963BE
Deuteranopia (green-blind)
#2964B7
Tritanopia (blue-blind)
#71617B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4aba;
/* rgb */ color: rgb(125, 74, 186);
/* oklch */ color: oklch(52.3% 0.171 301.8);
Tailwind
colors: {
  custom: {
    50: '#a77fcf',
    500: '#7d4aba',
    950: '#000000',
  },
}
SCSS
$custom: #7d4aba;
$custom-light: #a77fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4aba",
  "rgb": {
    "r": 125,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 267.321,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52291,
    "c": 0.17089,
    "h": 301.8
  },
  "luminance": 0.12803
}

Semantic roles & 50–950 ramp

primary
#7D4ABA
secondary
#B2C997
accent
#D5539A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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