#7D4CB5#7D4CB5

#7D4CB5 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.162 H 302.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7D4CB5
RGBrgb(125, 76, 181)
HSLhsl(268, 42%, 50%)
HSVhsv(268, 58%, 71%)
CMYKcmyk(30.9%, 58%, 0%, 29%)
CIE-LABlab(42.56, 41.88, -48.20)
CIE-LCHlch(42.56, 63.85, 310.99°)
OKLaboklab(52.26% 0.0875 -0.1363)
OKLCHoklch(52.26% 0.162 302.7)
XYZxyz(19.3805, 12.8650, 45.1693)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4CB5 #84B54C
analogous
#4C4FB5 #7D4CB5 #B14CB5
triadic
#7D4CB5 #B57D4C #4CB57D
tetradic
#7D4CB5 #B54C4F #84B54C #4CB5B1
square
#7D4CB5 #B54C4F #84B54C #4CB5B1
split-complementary
#7D4CB5 #B5B14C #4FB54C
monochromatic
#41275F #5F398B #7D4CB5 #9C77C7 #BCA3D9

Accessibility & contrast

On white

5.88
#7D4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7D4CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4CB5
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4CB5#FFFFFF#000000##FFFFFF
##7D4CB51.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E64B8
Deuteranopia (green-blind)
#3264B3
Tritanopia (blue-blind)
#726179
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4cb5;
/* rgb */ color: rgb(125, 76, 181);
/* oklch */ color: oklch(52.3% 0.162 302.7);
Tailwind
colors: {
  custom: {
    50: '#a680cc',
    500: '#7d4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #7d4cb5;
$custom-light: #a680cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4cb5",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 268,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52258,
    "c": 0.16193,
    "h": 302.7
  },
  "luminance": 0.12865
}

Semantic roles & 50–950 ramp

primary
#7D4CB5
secondary
#B0C697
accent
#D15698
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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