#7D1881#7D1881

#7D1881 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.178 H 326.4°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7D1881
RGBrgb(125, 24, 129)
HSLhsl(298, 69%, 30%)
HSVhsv(298, 81%, 51%)
CMYKcmyk(3.1%, 81.4%, 0%, 49.4%)
CIE-LABlab(30.88, 53.88, -35.40)
CIE-LCHlch(30.88, 64.47, 326.69°)
OKLaboklab(42.78% 0.1483 -0.0985)
OKLCHoklch(42.78% 0.178 326.4)
XYZxyz(12.7463, 6.5991, 21.3670)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1881 #1C8118
analogous
#481881 #7D1881 #811851
triadic
#7D1881 #817D18 #18817D
tetradic
#7D1881 #814818 #1C8118 #185181
square
#7D1881 #814818 #1C8118 #185181
split-complementary
#7D1881 #518118 #188148
monochromatic
#19051A #4B0E4D #7D1881 #AF22B5 #D439DA

Accessibility & contrast

On white

9.05
#7D1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7D1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1881
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1881#FFFFFF#000000##FFFFFF
##7D18811.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#334D7F
Tritanopia (blue-blind)
#802C4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1881;
/* rgb */ color: rgb(125, 24, 129);
/* oklch */ color: oklch(42.8% 0.178 326.4);
Tailwind
colors: {
  custom: {
    50: '#a663a6',
    500: '#7d1881',
    950: '#000000',
  },
}
SCSS
$custom: #7d1881;
$custom-light: #a663a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1881",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 297.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42777,
    "c": 0.17802,
    "h": 326.4
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#7D1881
secondary
#44B540
accent
#EB3C43
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1881

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

Preview Lab → · Contrast checker → · Palette generator →

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