#7D1F9C#7D1F9C

#7D1F9C is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.194 H 315.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7D1F9C
RGBrgb(125, 31, 156)
HSLhsl(285, 67%, 37%)
HSVhsv(285, 80%, 61%)
CMYKcmyk(19.9%, 80.1%, 0%, 38.8%)
CIE-LABlab(33.44, 56.79, -47.95)
CIE-LCHlch(33.44, 74.33, 319.83°)
OKLaboklab(45.17% 0.1393 -0.1353)
OKLCHoklch(45.17% 0.194 315.8)
XYZxyz(14.9472, 7.7408, 32.1528)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F9C #3E9C1F
analogous
#3F1F9C #7D1F9C #9C1F7D
triadic
#7D1F9C #9C7D1F #1F9C7D
tetradic
#7D1F9C #9C3F1F #3E9C1F #1F7D9C
square
#7D1F9C #9C3F1F #3E9C1F #1F7D9C
split-complementary
#7D1F9C #7D9C1F #1F9C3F
monochromatic
#2B0B36 #541569 #7D1F9C #A629CF #BC58DE

Accessibility & contrast

On white

8.24
#7D1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F9C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F9C#FFFFFF#000000##FFFFFF
##7D1F9C1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#1C5199
Tritanopia (blue-blind)
#7B3C5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1f9c;
/* rgb */ color: rgb(125, 31, 156);
/* oklch */ color: oklch(45.2% 0.194 315.8);
Tailwind
colors: {
  custom: {
    50: '#a767ba',
    500: '#7d1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f9c;
$custom-light: #a767ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f9c",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 285.12,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45168,
    "c": 0.19415,
    "h": 315.8
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#7D1F9C
secondary
#70C155
accent
#EA3E69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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