#7D4BA2#7D4BA2

#7D4BA2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.9% C 0.141 H 308.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7D4BA2
RGBrgb(125, 75, 162)
HSLhsl(274, 37%, 46%)
HSVhsv(274, 54%, 64%)
CMYKcmyk(22.8%, 53.7%, 0%, 36.5%)
CIE-LABlab(41.22, 37.79, -39.09)
CIE-LCHlch(41.22, 54.37, 314.03°)
OKLaboklab(50.91% 0.088 -0.1096)
OKLCHoklch(50.91% 0.141 308.8)
XYZxyz(17.4938, 12.0010, 35.5703)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4BA2 #70A24B
analogous
#524BA2 #7D4BA2 #A24B9C
triadic
#7D4BA2 #A27D4B #4BA27D
tetradic
#7D4BA2 #A2524B #70A24B #4B9CA2
square
#7D4BA2 #A2524B #70A24B #4B9CA2
split-complementary
#7D4BA2 #9CA24B #4BA252
monochromatic
#3C244E #5D3878 #7D4BA2 #9B6EBC #B898CF

Accessibility & contrast

On white

6.18
#7D4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7D4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4BA2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4BA2#FFFFFF#000000##FFFFFF
##7D4BA21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#4162A0
Tritanopia (blue-blind)
#785A6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d4ba2;
/* rgb */ color: rgb(125, 75, 162);
/* oklch */ color: oklch(50.9% 0.141 308.8);
Tailwind
colors: {
  custom: {
    50: '#a57fbe',
    500: '#7d4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ba2;
$custom-light: #a57fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ba2",
  "rgb": {
    "r": 125,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 274.483,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50907,
    "c": 0.14059,
    "h": 308.8
  },
  "luminance": 0.12001
}

Semantic roles & 50–950 ramp

primary
#7D4BA2
secondary
#A1BC8D
accent
#CD5B8B
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7D4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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