#7D1A8E#7D1A8E

#7D1A8E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.187 H 321.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7D1A8E
RGBrgb(125, 26, 142)
HSLhsl(291, 69%, 33%)
HSVhsv(291, 82%, 56%)
CMYKcmyk(12%, 81.7%, 0%, 44.3%)
CIE-LABlab(31.93, 55.64, -41.81)
CIE-LCHlch(31.93, 69.59, 323.08°)
OKLaboklab(43.79% 0.1454 -0.1172)
OKLCHoklch(43.79% 0.187 321.1)
XYZxyz(13.7088, 7.0525, 26.2251)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A8E #2B8E1A
analogous
#431A8E #7D1A8E #8E1A65
triadic
#7D1A8E #8E7D1A #1A8E7D
tetradic
#7D1A8E #8E431A #2B8E1A #1A658E
square
#7D1A8E #8E431A #2B8E1A #1A658E
split-complementary
#7D1A8E #658E1A #1A8E43
monochromatic
#220727 #4F115A #7D1A8E #AB23C2 #C745DD

Accessibility & contrast

On white

8.71
#7D1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1A8E
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A8E#FFFFFF#000000##FFFFFF
##7D1A8E1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#294F8B
Tritanopia (blue-blind)
#7E3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1a8e;
/* rgb */ color: rgb(125, 26, 142);
/* oklch */ color: oklch(43.8% 0.187 321.1);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7d1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a8e;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a8e",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 291.207,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43792,
    "c": 0.18679,
    "h": 321.1
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#7D1A8E
secondary
#57BE45
accent
#EC3C56
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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