#7D4E9B#7D4E9B

#7D4E9B is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.0% C 0.127 H 310.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7D4E9B
RGBrgb(125, 78, 155)
HSLhsl(277, 33%, 46%)
HSVhsv(277, 50%, 61%)
CMYKcmyk(19.4%, 49.7%, 0%, 39.2%)
CIE-LABlab(41.49, 34.43, -34.47)
CIE-LCHlch(41.49, 48.72, 314.97°)
OKLaboklab(50.99% 0.083 -0.0962)
OKLCHoklch(50.99% 0.127 310.8)
XYZxyz(17.0972, 12.1756, 32.4535)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4E9B #6C9B4E
analogous
#564E9B #7D4E9B #9B4E92
triadic
#7D4E9B #9B7D4E #4E9B7D
tetradic
#7D4E9B #9B564E #6C9B4E #4E929B
square
#7D4E9B #9B564E #6C9B4E #4E929B
split-complementary
#7D4E9B #929B4E #4E9B56
monochromatic
#3B254A #5C3A72 #7D4E9B #9B6FB7 #B798CB

Accessibility & contrast

On white

6.11
#7D4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7D4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4E9B
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4E9B#FFFFFF#000000##FFFFFF
##7D4E9B1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B609E
Deuteranopia (green-blind)
#496399
Tritanopia (blue-blind)
#7A5A6D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d4e9b;
/* rgb */ color: rgb(125, 78, 155);
/* oklch */ color: oklch(51.0% 0.127 310.8);
Tailwind
colors: {
  custom: {
    50: '#a481b9',
    500: '#7d4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7d4e9b;
$custom-light: #a481b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4e9b",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 276.623,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50988,
    "c": 0.12704,
    "h": 310.8
  },
  "luminance": 0.12175
}

Semantic roles & 50–950 ramp

primary
#7D4E9B
secondary
#9EB88D
accent
#C95F88
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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