#7D4EA8#7D4EA8

#7D4EA8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.143 H 306.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7D4EA8
RGBrgb(125, 78, 168)
HSLhsl(271, 37%, 48%)
HSVhsv(271, 54%, 66%)
CMYKcmyk(25.6%, 53.6%, 0%, 34.1%)
CIE-LABlab(42.21, 37.54, -41.08)
CIE-LCHlch(42.21, 55.65, 312.42°)
OKLaboklab(51.75% 0.0843 -0.1154)
OKLCHoklch(51.75% 0.143 306.1)
XYZxyz(18.2482, 12.6361, 38.5159)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4EA8 #79A84E
analogous
#504EA8 #7D4EA8 #A84EA6
triadic
#7D4EA8 #A87D4E #4EA87D
tetradic
#7D4EA8 #A8504E #79A84E #4EA6A8
square
#7D4EA8 #A8504E #79A84E #4EA6A8
split-complementary
#7D4EA8 #A6A84E #4EA850
monochromatic
#3F2754 #5E3B7E #7D4EA8 #9B75BF #B99ED2

Accessibility & contrast

On white

5.95
#7D4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7D4EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4EA8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4EA8#FFFFFF#000000##FFFFFF
##7D4EA81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#4064A6
Tritanopia (blue-blind)
#765E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4ea8;
/* rgb */ color: rgb(125, 78, 168);
/* oklch */ color: oklch(51.8% 0.143 306.1);
Tailwind
colors: {
  custom: {
    50: '#a581c2',
    500: '#7d4ea8',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ea8;
$custom-light: #a581c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ea8",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 271.333,
    "s": 36.585,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51751,
    "c": 0.14296,
    "h": 306.1
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#7D4EA8
secondary
#A8BF93
accent
#CD5B91
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7D4EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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