#7D4CB2#7D4CB2

#7D4CB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.158 H 303.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7D4CB2
RGBrgb(125, 76, 178)
HSLhsl(269, 40%, 50%)
HSVhsv(269, 57%, 70%)
CMYKcmyk(29.8%, 57.3%, 0%, 30.2%)
CIE-LABlab(42.37, 41.13, -46.73)
CIE-LCHlch(42.37, 62.25, 311.35°)
OKLaboklab(52.06% 0.0874 -0.132)
OKLCHoklch(52.06% 0.158 303.5)
XYZxyz(19.0760, 12.7432, 43.5656)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4CB2 #81B24C
analogous
#4C4EB2 #7D4CB2 #B04CB2
triadic
#7D4CB2 #B27D4C #4CB27D
tetradic
#7D4CB2 #B24C4E #81B24C #4CB2B0
square
#7D4CB2 #B24C4E #81B24C #4CB2B0
split-complementary
#7D4CB2 #B2B04C #4EB24C
monochromatic
#41275C #5F3A87 #7D4CB2 #9C76C5 #BBA1D7

Accessibility & contrast

On white

5.92
#7D4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7D4CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4CB2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4CB2#FFFFFF#000000##FFFFFF
##7D4CB21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#736078
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4cb2;
/* rgb */ color: rgb(125, 76, 178);
/* oklch */ color: oklch(52.1% 0.158 303.5);
Tailwind
colors: {
  custom: {
    50: '#a680c9',
    500: '#7d4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4cb2;
$custom-light: #a680c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4cb2",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 268.824,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52063,
    "c": 0.1583,
    "h": 303.5
  },
  "luminance": 0.12743
}

Semantic roles & 50–950 ramp

primary
#7D4CB2
secondary
#AEC496
accent
#D05896
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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