#7D2C9D#7D2C9D

#7D2C9D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.181 H 314.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7D2C9D
RGBrgb(125, 44, 157)
HSLhsl(283, 56%, 39%)
HSVhsv(283, 72%, 62%)
CMYKcmyk(20.4%, 72%, 0%, 38.4%)
CIE-LABlab(35.19, 52.17, -45.72)
CIE-LCHlch(35.19, 69.37, 318.77°)
OKLaboklab(46.43% 0.1269 -0.1288)
OKLCHoklch(46.43% 0.181 314.6)
XYZxyz(15.4429, 8.5962, 32.7375)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C9D #4C9D2C
analogous
#452C9D #7D2C9D #9D2C85
triadic
#7D2C9D #9D7D2C #2C9D7D
tetradic
#7D2C9D #9D452C #4C9D2C #2C859D
square
#7D2C9D #9D452C #4C9D2C #2C859D
split-complementary
#7D2C9D #859D2C #2C9D45
monochromatic
#31113D #571F6D #7D2C9D #A13DC9 #B86DD6

Accessibility & contrast

On white

7.72
#7D2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7D2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2C9D
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C9D#FFFFFF#000000##FFFFFF
##7D2C9D1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#27559A
Tritanopia (blue-blind)
#7A4462
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2c9d;
/* rgb */ color: rgb(125, 44, 157);
/* oklch */ color: oklch(46.4% 0.181 314.6);
Tailwind
colors: {
  custom: {
    50: '#a66dbb',
    500: '#7d2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c9d;
$custom-light: #a66dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c9d",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 283.009,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.18086,
    "h": 314.6
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#7D2C9D
secondary
#80BD68
accent
#E04873
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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