#7D4BB2#7D4BB2

#7D4BB2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.160 H 303.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7D4BB2
RGBrgb(125, 75, 178)
HSLhsl(269, 41%, 50%)
HSVhsv(269, 58%, 70%)
CMYKcmyk(29.8%, 57.9%, 0%, 30.2%)
CIE-LABlab(42.16, 41.68, -47.07)
CIE-LCHlch(42.16, 62.87, 311.53°)
OKLaboklab(51.91% 0.0887 -0.1329)
OKLCHoklch(51.91% 0.16 303.7)
XYZxyz(19.0076, 12.6065, 43.5428)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4BB2 #80B24B
analogous
#4B4DB2 #7D4BB2 #B04BB2
triadic
#7D4BB2 #B27D4B #4BB27D
tetradic
#7D4BB2 #B24B4D #80B24B #4BB2B0
square
#7D4BB2 #B24B4D #80B24B #4BB2B0
split-complementary
#7D4BB2 #B2B04B #4DB24B
monochromatic
#41275C #5F3987 #7D4BB2 #9C75C5 #BBA0D7

Accessibility & contrast

On white

5.96
#7D4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7D4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4BB2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4BB2#FFFFFF#000000##FFFFFF
##7D4BB21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#3463B0
Tritanopia (blue-blind)
#735F77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d4bb2;
/* rgb */ color: rgb(125, 75, 178);
/* oklch */ color: oklch(51.9% 0.160 303.7);
Tailwind
colors: {
  custom: {
    50: '#a67fca',
    500: '#7d4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4bb2;
$custom-light: #a67fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4bb2",
  "rgb": {
    "r": 125,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 269.126,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51909,
    "c": 0.15984,
    "h": 303.7
  },
  "luminance": 0.12606
}

Semantic roles & 50–950 ramp

primary
#7D4BB2
secondary
#ADC495
accent
#D15796
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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