#7D2D96#7D2D96

#7D2D96 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.173 H 317.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7D2D96
RGBrgb(125, 45, 150)
HSLhsl(286, 54%, 38%)
HSVhsv(286, 70%, 59%)
CMYKcmyk(16.7%, 70%, 0%, 41.2%)
CIE-LABlab(34.88, 50.28, -41.97)
CIE-LCHlch(34.88, 65.50, 320.15°)
OKLaboklab(46.06% 0.1265 -0.1178)
OKLCHoklch(46.06% 0.173 317)
XYZxyz(14.9000, 8.4394, 29.6923)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D96 #46962D
analogous
#482D96 #7D2D96 #962D7A
triadic
#7D2D96 #967D2D #2D967D
tetradic
#7D2D96 #96482D #46962D #2D7A96
square
#7D2D96 #96482D #46962D #2D7A96
split-complementary
#7D2D96 #7A962D #2D9648
monochromatic
#2F1138 #561F67 #7D2D96 #A43CC4 #BA6BD3

Accessibility & contrast

On white

7.81
#7D2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D96
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D96#FFFFFF#000000##FFFFFF
##7D2D961.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#2F5494
Tritanopia (blue-blind)
#7C415E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2d96;
/* rgb */ color: rgb(125, 45, 150);
/* oklch */ color: oklch(46.1% 0.173 317.0);
Tailwind
colors: {
  custom: {
    50: '#a66db5',
    500: '#7d2d96',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d96;
$custom-light: #a66db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d96",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 285.714,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46063,
    "c": 0.17285,
    "h": 317
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#7D2D96
secondary
#79B965
accent
#DD4B6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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