#7D1E81#7D1E81

#7D1E81 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.172 H 326.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7D1E81
RGBrgb(125, 30, 129)
HSLhsl(298, 62%, 31%)
HSVhsv(298, 77%, 51%)
CMYKcmyk(3.1%, 76.7%, 0%, 49.4%)
CIE-LABlab(31.52, 52.02, -34.38)
CIE-LCHlch(31.52, 62.35, 326.54°)
OKLaboklab(43.24% 0.1431 -0.0956)
OKLCHoklch(43.24% 0.172 326.3)
XYZxyz(12.8839, 6.8744, 21.4129)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E81 #22811E
analogous
#4B1E81 #7D1E81 #811E53
triadic
#7D1E81 #817D1E #1E817D
tetradic
#7D1E81 #814B1E #22811E #1E5381
square
#7D1E81 #814B1E #22811E #1E5381
split-complementary
#7D1E81 #53811E #1E814B
monochromatic
#1D071E #4D124F #7D1E81 #AD2AB3 #CE46D4

Accessibility & contrast

On white

8.84
#7D1E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D1E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E81
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E81#FFFFFF#000000##FFFFFF
##7D1E811.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004384
Deuteranopia (green-blind)
#364E7F
Tritanopia (blue-blind)
#802F4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1e81;
/* rgb */ color: rgb(125, 30, 129);
/* oklch */ color: oklch(43.2% 0.172 326.3);
Tailwind
colors: {
  custom: {
    50: '#a665a6',
    500: '#7d1e81',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e81;
$custom-light: #a665a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e81",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 297.576,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43235,
    "c": 0.17208,
    "h": 326.3
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#7D1E81
secondary
#4BB447
accent
#E54249
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1E81

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

Preview Lab → · Contrast checker → · Palette generator →

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