#7D1F9A#7D1F9A

#7D1F9A is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.192 H 316.5°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7D1F9A
RGBrgb(125, 31, 154)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 80%, 60%)
CMYKcmyk(18.8%, 79.9%, 0%, 39.6%)
CIE-LABlab(33.29, 56.40, -46.96)
CIE-LCHlch(33.29, 73.39, 320.22°)
OKLaboklab(45.02% 0.1396 -0.1324)
OKLCHoklch(45.02% 0.192 316.5)
XYZxyz(14.7793, 7.6737, 31.2682)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F9A #3C9A1F
analogous
#401F9A #7D1F9A #9A1F7A
triadic
#7D1F9A #9A7D1F #1F9A7D
tetradic
#7D1F9A #9A401F #3C9A1F #1F7A9A
square
#7D1F9A #9A401F #3C9A1F #1F7A9A
split-complementary
#7D1F9A #7A9A1F #1F9A40
monochromatic
#2A0A34 #541567 #7D1F9A #A629CD #BD56DD

Accessibility & contrast

On white

8.29
#7D1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F9A
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F9A#FFFFFF#000000##FFFFFF
##7D1F9A1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d1f9a;
/* rgb */ color: rgb(125, 31, 154);
/* oklch */ color: oklch(45.0% 0.192 316.5);
Tailwind
colors: {
  custom: {
    50: '#a767b8',
    500: '#7d1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f9a;
$custom-light: #a767b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f9a",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 285.854,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45021,
    "c": 0.19239,
    "h": 316.5
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#7D1F9A
secondary
#6EC154
accent
#E93E67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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