#7D4E9D#7D4E9D

#7D4E9D is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.1% C 0.129 H 310.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7D4E9D
RGBrgb(125, 78, 157)
HSLhsl(276, 34%, 46%)
HSVhsv(276, 50%, 62%)
CMYKcmyk(20.4%, 50.3%, 0%, 38.4%)
CIE-LABlab(41.60, 34.90, -35.50)
CIE-LCHlch(41.60, 49.78, 314.51°)
OKLaboklab(51.1% 0.0833 -0.0991)
OKLCHoklch(51.1% 0.129 310)
XYZxyz(17.2665, 12.2434, 33.3454)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4E9D #6E9D4E
analogous
#554E9D #7D4E9D #9D4E95
triadic
#7D4E9D #9D7D4E #4E9D7D
tetradic
#7D4E9D #9D554E #6E9D4E #4E959D
square
#7D4E9D #9D554E #6E9D4E #4E959D
split-complementary
#7D4E9D #959D4E #4E9D55
monochromatic
#3C254B #5C3A74 #7D4E9D #9B70B8 #B899CC

Accessibility & contrast

On white

6.09
#7D4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7D4E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4E9D
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4E9D#FFFFFF#000000##FFFFFF
##7D4E9D1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#48639B
Tritanopia (blue-blind)
#795B6E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d4e9d;
/* rgb */ color: rgb(125, 78, 157);
/* oklch */ color: oklch(51.1% 0.129 310.0);
Tailwind
colors: {
  custom: {
    50: '#a481ba',
    500: '#7d4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d4e9d;
$custom-light: #a481ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4e9d",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 275.696,
    "s": 33.617,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51101,
    "c": 0.12948,
    "h": 310
  },
  "luminance": 0.12243
}

Semantic roles & 50–950 ramp

primary
#7D4E9D
secondary
#9FB98E
accent
#CA5E8A
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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