#7D3396#7D3396

#7D3396 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.165 H 316.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7D3396
RGBrgb(125, 51, 150)
HSLhsl(285, 49%, 39%)
HSVhsv(285, 66%, 59%)
CMYKcmyk(16.7%, 66%, 0%, 41.2%)
CIE-LABlab(35.85, 47.58, -40.42)
CIE-LCHlch(35.85, 62.43, 319.65°)
OKLaboklab(46.76% 0.1195 -0.1133)
OKLCHoklch(46.76% 0.165 316.5)
XYZxyz(15.1455, 8.9302, 29.7741)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3396 #4C9633
analogous
#4B3396 #7D3396 #96337E
triadic
#7D3396 #967D33 #33967D
tetradic
#7D3396 #964B33 #4C9633 #337E96
square
#7D3396 #964B33 #4C9633 #337E96
split-complementary
#7D3396 #7E9633 #33964B
monochromatic
#31143B #572368 #7D3396 #A146C0 #B874D0

Accessibility & contrast

On white

7.54
#7D3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7D3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D3396
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3396#FFFFFF#000000##FFFFFF
##7D33961.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5099
Deuteranopia (green-blind)
#345694
Tritanopia (blue-blind)
#7C4560
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d3396;
/* rgb */ color: rgb(125, 51, 150);
/* oklch */ color: oklch(46.8% 0.165 316.5);
Tailwind
colors: {
  custom: {
    50: '#a670b5',
    500: '#7d3396',
    950: '#000000',
  },
}
SCSS
$custom: #7d3396;
$custom-light: #a670b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3396",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 284.848,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46758,
    "c": 0.16467,
    "h": 316.5
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

primary
#7D3396
secondary
#80B86D
accent
#D94F72
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7D3396

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

Preview Lab → · Contrast checker → · Palette generator →

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