#7D3399#7D3399

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

Color values

HEX#7D3399
RGBrgb(125, 51, 153)
HSLhsl(284, 50%, 40%)
HSVhsv(284, 67%, 60%)
CMYKcmyk(18.3%, 66.7%, 0%, 40%)
CIE-LABlab(36.04, 48.22, -41.94)
CIE-LCHlch(36.04, 63.91, 318.99°)
OKLaboklab(46.96% 0.1194 -0.1178)
OKLCHoklch(46.96% 0.168 315.4)
XYZxyz(15.3901, 9.0281, 31.0627)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3399 #4F9933
analogous
#4A3399 #7D3399 #993382
triadic
#7D3399 #997D33 #33997D
tetradic
#7D3399 #994A33 #4F9933 #338299
square
#7D3399 #994A33 #4F9933 #338299
split-complementary
#7D3399 #829933 #33994A
monochromatic
#32143D #57246B #7D3399 #A047C2 #B875D1

Accessibility & contrast

On white

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

On black

2.81
#7D3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7D3399#FFFFFF#000000##FFFFFF
##7D33991.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03509C
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#7B4661
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d3399;
/* rgb */ color: rgb(125, 51, 153);
/* oklch */ color: oklch(47.0% 0.168 315.4);
Tailwind
colors: {
  custom: {
    50: '#a670b8',
    500: '#7d3399',
    950: '#000000',
  },
}
SCSS
$custom: #7d3399;
$custom-light: #a670b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3399",
  "rgb": {
    "r": 125,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 283.529,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.46955,
    "c": 0.1677,
    "h": 315.4
  },
  "luminance": 0.09028
}

Semantic roles & 50–950 ramp

primary
#7D3399
secondary
#83B96E
accent
#DA4E75
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7D3399

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

Preview Lab → · Contrast checker → · Palette generator →

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