#7D3496#7D3496

#7D3496 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.163 H 316.4°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7D3496
RGBrgb(125, 52, 150)
HSLhsl(285, 49%, 40%)
HSVhsv(285, 65%, 59%)
CMYKcmyk(16.7%, 65.3%, 0%, 41.2%)
CIE-LABlab(36.02, 47.11, -40.15)
CIE-LCHlch(36.02, 61.90, 319.56°)
OKLaboklab(46.88% 0.1182 -0.1126)
OKLCHoklch(46.88% 0.163 316.4)
XYZxyz(15.1896, 9.0185, 29.7889)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3496 #4D9634
analogous
#4C3496 #7D3496 #96347E
triadic
#7D3496 #967D34 #34967D
tetradic
#7D3496 #964C34 #4D9634 #347E96
square
#7D3496 #964C34 #4D9634 #347E96
split-complementary
#7D3496 #7E9634 #34964C
monochromatic
#31143B #572469 #7D3496 #A148BF #B875CF

Accessibility & contrast

On white

7.49
#7D3496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7D3496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D3496
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3496#FFFFFF#000000##FFFFFF
##7D34961.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5099
Deuteranopia (green-blind)
#355794
Tritanopia (blue-blind)
#7C4660
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d3496;
/* rgb */ color: rgb(125, 52, 150);
/* oklch */ color: oklch(46.9% 0.163 316.4);
Tailwind
colors: {
  custom: {
    50: '#a671b5',
    500: '#7d3496',
    950: '#000000',
  },
}
SCSS
$custom: #7d3496;
$custom-light: #a671b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3496",
  "rgb": {
    "r": 125,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 284.694,
    "s": 48.515,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46881,
    "c": 0.16324,
    "h": 316.4
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#7D3496
secondary
#81B86E
accent
#D85073
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7D3496

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

Preview Lab → · Contrast checker → · Palette generator →

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