#7D1580#7D1580

#7D1580 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.180 H 326.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7D1580
RGBrgb(125, 21, 128)
HSLhsl(298, 72%, 29%)
HSVhsv(298, 84%, 50%)
CMYKcmyk(2.3%, 83.6%, 0%, 49.8%)
CIE-LABlab(30.53, 54.51, -35.32)
CIE-LCHlch(30.53, 64.96, 327.06°)
OKLaboklab(42.52% 0.1506 -0.0982)
OKLCHoklch(42.52% 0.18 326.9)
XYZxyz(12.6217, 6.4557, 20.9992)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1580 #188015
analogous
#481580 #7D1580 #80154E
triadic
#7D1580 #807D15 #15807D
tetradic
#7D1580 #804815 #188015 #154E80
square
#7D1580 #804815 #188015 #154E80
split-complementary
#7D1580 #4E8015 #158048
monochromatic
#1A041A #4A0C4B #7D1580 #B01EB5 #D932DD

Accessibility & contrast

On white

9.17
#7D1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7D1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1580
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1580#FFFFFF#000000##FFFFFF
##7D15801.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#334C7E
Tritanopia (blue-blind)
#812A4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1580;
/* rgb */ color: rgb(125, 21, 128);
/* oklch */ color: oklch(42.5% 0.180 326.9);
Tailwind
colors: {
  custom: {
    50: '#a662a5',
    500: '#7d1580',
    950: '#000000',
  },
}
SCSS
$custom: #7d1580;
$custom-light: #a662a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1580",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 298.318,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42515,
    "c": 0.17982,
    "h": 326.9
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#7D1580
secondary
#3FB53C
accent
#EF393E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1580

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

Preview Lab → · Contrast checker → · Palette generator →

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