#7D1A97#7D1A97

#7D1A97 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.194 H 317.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7D1A97
RGBrgb(125, 26, 151)
HSLhsl(288, 71%, 35%)
HSVhsv(288, 83%, 59%)
CMYKcmyk(17.2%, 82.8%, 0%, 40.8%)
CIE-LABlab(32.55, 57.33, -46.32)
CIE-LCHlch(32.55, 73.71, 321.06°)
OKLaboklab(44.43% 0.144 -0.1305)
OKLCHoklch(44.43% 0.194 317.8)
XYZxyz(14.4120, 7.3338, 29.9286)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A97 #34971A
analogous
#3F1A97 #7D1A97 #971A73
triadic
#7D1A97 #977D1A #1A977D
tetradic
#7D1A97 #973F1A #34971A #1A7397
square
#7D1A97 #973F1A #34971A #1A7397
split-complementary
#7D1A97 #73971A #1A973F
monochromatic
#27082F #521163 #7D1A97 #A823CB #C14BE0

Accessibility & contrast

On white

8.51
#7D1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7D1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1A97
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A97#FFFFFF#000000##FFFFFF
##7D1A971.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#1F4F94
Tritanopia (blue-blind)
#7C385A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d1a97;
/* rgb */ color: rgb(125, 26, 151);
/* oklch */ color: oklch(44.4% 0.194 317.8);
Tailwind
colors: {
  custom: {
    50: '#a765b6',
    500: '#7d1a97',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a97;
$custom-light: #a765b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a97",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 287.52,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44434,
    "c": 0.19434,
    "h": 317.8
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

primary
#7D1A97
secondary
#64C24B
accent
#ED3A60
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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