#7D2181#7D2181

#7D2181 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.169 H 326.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7D2181
RGBrgb(125, 33, 129)
HSLhsl(298, 59%, 32%)
HSVhsv(298, 74%, 51%)
CMYKcmyk(3.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(31.88, 50.98, -33.80)
CIE-LCHlch(31.88, 61.17, 326.46°)
OKLaboklab(43.5% 0.1402 -0.0939)
OKLCHoklch(43.5% 0.169 326.2)
XYZxyz(12.9635, 7.0335, 21.4394)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2181 #258121
analogous
#4D2181 #7D2181 #812155
triadic
#7D2181 #817D21 #21817D
tetradic
#7D2181 #814D21 #258121 #215581
square
#7D2181 #814D21 #258121 #215581
split-complementary
#7D2181 #558121 #21814D
monochromatic
#1F0820 #4E1550 #7D2181 #AC2DB2 #CB4BD1

Accessibility & contrast

On white

8.73
#7D2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7D2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2181
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2181#FFFFFF#000000##FFFFFF
##7D21811.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074484
Deuteranopia (green-blind)
#374F7F
Tritanopia (blue-blind)
#80314F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d2181;
/* rgb */ color: rgb(125, 33, 129);
/* oklch */ color: oklch(43.5% 0.169 326.2);
Tailwind
colors: {
  custom: {
    50: '#a666a6',
    500: '#7d2181',
    950: '#000000',
  },
}
SCSS
$custom: #7d2181;
$custom-light: #a666a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2181",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 297.5,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43495,
    "c": 0.16873,
    "h": 326.2
  },
  "luminance": 0.07033
}

Semantic roles & 50–950 ramp

primary
#7D2181
secondary
#4FB44A
accent
#E2454C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D2181

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

Preview Lab → · Contrast checker → · Palette generator →

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