#7D4CB8#7D4CB8

#7D4CB8 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.166 H 301.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7D4CB8
RGBrgb(125, 76, 184)
HSLhsl(267, 43%, 51%)
HSVhsv(267, 59%, 72%)
CMYKcmyk(32.1%, 58.7%, 0%, 27.8%)
CIE-LABlab(42.75, 42.64, -49.66)
CIE-LCHlch(42.75, 65.45, 310.65°)
OKLaboklab(52.46% 0.0875 -0.1405)
OKLCHoklch(52.46% 0.166 301.9)
XYZxyz(19.6916, 12.9895, 46.8079)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4CB8 #87B84C
analogous
#4C51B8 #7D4CB8 #B34CB8
triadic
#7D4CB8 #B87D4C #4CB87D
tetradic
#7D4CB8 #B84C51 #87B84C #4CB8B3
square
#7D4CB8 #B84C51 #87B84C #4CB8B3
split-complementary
#7D4CB8 #B8B34C #51B84C
monochromatic
#422763 #5F388E #7D4CB8 #9D78C9 #BDA4DB

Accessibility & contrast

On white

5.84
#7D4CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7D4CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4CB8
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4CB8#FFFFFF#000000##FFFFFF
##7D4CB81.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BC
Deuteranopia (green-blind)
#2F64B6
Tritanopia (blue-blind)
#71627B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4cb8;
/* rgb */ color: rgb(125, 76, 184);
/* oklch */ color: oklch(52.5% 0.166 301.9);
Tailwind
colors: {
  custom: {
    50: '#a680ce',
    500: '#7d4cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7d4cb8;
$custom-light: #a680ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4cb8",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 267.222,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.16554,
    "h": 301.9
  },
  "luminance": 0.1299
}

Semantic roles & 50–950 ramp

primary
#7D4CB8
secondary
#B2C898
accent
#D3559A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D4CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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