#7D4CB7#7D4CB7

#7D4CB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.4% C 0.164 H 302.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7D4CB7
RGBrgb(125, 76, 183)
HSLhsl(267, 43%, 51%)
HSVhsv(267, 58%, 72%)
CMYKcmyk(31.7%, 58.5%, 0%, 28.2%)
CIE-LABlab(42.68, 42.39, -49.17)
CIE-LCHlch(42.68, 64.92, 310.76°)
OKLaboklab(52.39% 0.0875 -0.1391)
OKLCHoklch(52.39% 0.164 302.2)
XYZxyz(19.5872, 12.9477, 46.2578)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4CB7 #86B74C
analogous
#4C50B7 #7D4CB7 #B24CB7
triadic
#7D4CB7 #B77D4C #4CB77D
tetradic
#7D4CB7 #B74C50 #86B74C #4CB7B2
square
#7D4CB7 #B74C50 #86B74C #4CB7B2
split-complementary
#7D4CB7 #B7B24C #50B74C
monochromatic
#422761 #5F398D #7D4CB7 #9D78C9 #BCA3DA

Accessibility & contrast

On white

5.85
#7D4CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7D4CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4CB7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4CB7#FFFFFF#000000##FFFFFF
##7D4CB71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A64BA
Deuteranopia (green-blind)
#3064B5
Tritanopia (blue-blind)
#72627A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4cb7;
/* rgb */ color: rgb(125, 76, 183);
/* oklch */ color: oklch(52.4% 0.164 302.2);
Tailwind
colors: {
  custom: {
    50: '#a680cd',
    500: '#7d4cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7d4cb7;
$custom-light: #a680cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4cb7",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 267.477,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5239,
    "c": 0.16434,
    "h": 302.2
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#7D4CB7
secondary
#B1C798
accent
#D25599
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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