#7D1E9A#7D1E9A

#7D1E9A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.193 H 316.6°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7D1E9A
RGBrgb(125, 30, 154)
HSLhsl(286, 67%, 36%)
HSVhsv(286, 81%, 60%)
CMYKcmyk(18.8%, 80.5%, 0%, 39.6%)
CIE-LABlab(33.18, 56.72, -47.14)
CIE-LCHlch(33.18, 73.75, 320.27°)
OKLaboklab(44.94% 0.1404 -0.1329)
OKLCHoklch(44.94% 0.193 316.6)
XYZxyz(14.7536, 7.6222, 31.2597)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E9A #3B9A1E
analogous
#3F1E9A #7D1E9A #9A1E79
triadic
#7D1E9A #9A7D1E #1E9A7D
tetradic
#7D1E9A #9A3F1E #3B9A1E #1E799A
square
#7D1E9A #9A3F1E #3B9A1E #1E799A
split-complementary
#7D1E9A #799A1E #1E9A3F
monochromatic
#2A0A34 #531467 #7D1E9A #A728CD #BE55DE

Accessibility & contrast

On white

8.32
#7D1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7D1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E9A
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E9A#FFFFFF#000000##FFFFFF
##7D1E9A1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#1E5197
Tritanopia (blue-blind)
#7B3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1e9a;
/* rgb */ color: rgb(125, 30, 154);
/* oklch */ color: oklch(44.9% 0.193 316.6);
Tailwind
colors: {
  custom: {
    50: '#a766b8',
    500: '#7d1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e9a;
$custom-light: #a766b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e9a",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 285.968,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44944,
    "c": 0.19334,
    "h": 316.6
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#7D1E9A
secondary
#6CC153
accent
#EA3E66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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