#7D4ABB#7D4ABB

#7D4ABB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.4% C 0.172 H 301.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7D4ABB
RGBrgb(125, 74, 187)
HSLhsl(267, 45%, 51%)
HSVhsv(267, 60%, 73%)
CMYKcmyk(33.2%, 60.4%, 0%, 26.7%)
CIE-LABlab(42.53, 44.49, -51.76)
CIE-LCHlch(42.53, 68.25, 310.68°)
OKLaboklab(52.36% 0.0899 -0.1467)
OKLCHoklch(52.36% 0.172 301.5)
XYZxyz(19.8738, 12.8453, 48.4364)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4ABB #88BB4A
analogous
#4A4FBB #7D4ABB #B64ABB
triadic
#7D4ABB #BB7D4A #4ABB7D
tetradic
#7D4ABB #BB4A4F #88BB4A #4ABBB6
square
#7D4ABB #BB4A4F #88BB4A #4ABBB6
split-complementary
#7D4ABB #BBB64A #4FBB4A
monochromatic
#422665 #5F3791 #7D4ABB #9D76CC #BDA3DC

Accessibility & contrast

On white

5.88
#7D4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7D4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4ABB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4ABB#FFFFFF#000000##FFFFFF
##7D4ABB1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0564BF
Deuteranopia (green-blind)
#2864B8
Tritanopia (blue-blind)
#70627B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4abb;
/* rgb */ color: rgb(125, 74, 187);
/* oklch */ color: oklch(52.4% 0.172 301.5);
Tailwind
colors: {
  custom: {
    50: '#a77fd0',
    500: '#7d4abb',
    950: '#000000',
  },
}
SCSS
$custom: #7d4abb;
$custom-light: #a77fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4abb",
  "rgb": {
    "r": 125,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 267.08,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52359,
    "c": 0.17209,
    "h": 301.5
  },
  "luminance": 0.12845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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