#7D4CBB#7D4CBB

#7D4CBB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.169 H 301.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7D4CBB
RGBrgb(125, 76, 187)
HSLhsl(266, 45%, 52%)
HSVhsv(266, 59%, 73%)
CMYKcmyk(33.2%, 59.4%, 0%, 26.7%)
CIE-LABlab(42.94, 43.40, -51.10)
CIE-LCHlch(42.94, 67.04, 310.34°)
OKLaboklab(52.66% 0.0875 -0.1448)
OKLCHoklch(52.66% 0.169 301.1)
XYZxyz(20.0094, 13.1166, 48.4817)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4CBB #8ABB4C
analogous
#4C53BB #7D4CBB #B44CBB
triadic
#7D4CBB #BB7D4C #4CBB7D
tetradic
#7D4CBB #BB4C53 #8ABB4C #4CBBB4
square
#7D4CBB #BB4C53 #8ABB4C #4CBBB4
split-complementary
#7D4CBB #BBB44C #53BB4C
monochromatic
#432766 #603892 #7D4CBB #9D78CC #BDA5DD

Accessibility & contrast

On white

5.80
#7D4CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7D4CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4CBB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4CBB#FFFFFF#000000##FFFFFF
##7D4CBB1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1165BF
Deuteranopia (green-blind)
#2B65B8
Tritanopia (blue-blind)
#70637C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4cbb;
/* rgb */ color: rgb(125, 76, 187);
/* oklch */ color: oklch(52.7% 0.169 301.1);
Tailwind
colors: {
  custom: {
    50: '#a680d0',
    500: '#7d4cbb',
    950: '#000000',
  },
}
SCSS
$custom: #7d4cbb;
$custom-light: #a680d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4cbb",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 266.486,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52657,
    "c": 0.16916,
    "h": 301.1
  },
  "luminance": 0.13117
}

Semantic roles & 50–950 ramp

primary
#7D4CBB
secondary
#B4CA99
accent
#D5539B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D4CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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