#7D2C87#7D2C87

#7D2C87 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.160 H 323.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7D2C87
RGBrgb(125, 44, 135)
HSLhsl(293, 51%, 35%)
HSVhsv(293, 67%, 53%)
CMYKcmyk(7.4%, 67.4%, 0%, 47.1%)
CIE-LABlab(33.80, 47.71, -34.48)
CIE-LCHlch(33.80, 58.87, 324.14°)
OKLaboklab(44.99% 0.128 -0.096)
OKLCHoklch(44.99% 0.16 323.1)
XYZxyz(13.7309, 7.9114, 23.7208)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C87 #36872C
analogous
#502C87 #7D2C87 #872C63
triadic
#7D2C87 #877D2C #2C877D
tetradic
#7D2C87 #87502C #36872C #2C6387
square
#7D2C87 #87502C #36872C #2C6387
split-complementary
#7D2C87 #63872C #2C8750
monochromatic
#280E2B #521D59 #7D2C87 #A83BB5 #C062CC

Accessibility & contrast

On white

8.13
#7D2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2C87
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C87#FFFFFF#000000##FFFFFF
##7D2C871.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#7F3B56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2c87;
/* rgb */ color: rgb(125, 44, 135);
/* oklch */ color: oklch(45.0% 0.160 323.1);
Tailwind
colors: {
  custom: {
    50: '#a56caa',
    500: '#7d2c87',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c87;
$custom-light: #a56caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c87",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 293.407,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.16002,
    "h": 323.1
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#7D2C87
secondary
#66B25D
accent
#DA4D5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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