#7D4EA2#7D4EA2

#7D4EA2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.4% C 0.136 H 308.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7D4EA2
RGBrgb(125, 78, 162)
HSLhsl(274, 35%, 47%)
HSVhsv(274, 52%, 64%)
CMYKcmyk(22.8%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.87, 36.09, -38.05)
CIE-LCHlch(41.87, 52.45, 313.48°)
OKLaboklab(51.39% 0.0838 -0.1066)
OKLCHoklch(51.39% 0.136 308.2)
XYZxyz(17.7021, 12.4176, 35.6397)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4EA2 #73A24E
analogous
#534EA2 #7D4EA2 #A24E9D
triadic
#7D4EA2 #A27D4E #4EA27D
tetradic
#7D4EA2 #A2534E #73A24E #4E9DA2
square
#7D4EA2 #A2534E #73A24E #4E9DA2
split-complementary
#7D4EA2 #9DA24E #4EA253
monochromatic
#3D264F #5D3A79 #7D4EA2 #9B72BB #B89BCF

Accessibility & contrast

On white

6.03
#7D4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7D4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4EA2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4EA2#FFFFFF#000000##FFFFFF
##7D4EA21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4463A0
Tritanopia (blue-blind)
#785C70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d4ea2;
/* rgb */ color: rgb(125, 78, 162);
/* oklch */ color: oklch(51.4% 0.136 308.2);
Tailwind
colors: {
  custom: {
    50: '#a581be',
    500: '#7d4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ea2;
$custom-light: #a581be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ea2",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 273.571,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51392,
    "c": 0.13559,
    "h": 308.2
  },
  "luminance": 0.12417
}

Semantic roles & 50–950 ramp

primary
#7D4EA2
secondary
#A3BC90
accent
#CB5D8D
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7D4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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