#7D1F9D#7D1F9D

#7D1F9D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.195 H 315.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7D1F9D
RGBrgb(125, 31, 157)
HSLhsl(285, 67%, 37%)
HSVhsv(285, 80%, 62%)
CMYKcmyk(20.4%, 80.3%, 0%, 38.4%)
CIE-LABlab(33.51, 56.99, -48.44)
CIE-LCHlch(33.51, 74.79, 319.64°)
OKLaboklab(45.24% 0.1391 -0.1367)
OKLCHoklch(45.24% 0.195 315.5)
XYZxyz(15.0323, 7.7749, 32.6006)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F9D #3F9D1F
analogous
#3E1F9D #7D1F9D #9D1F7E
triadic
#7D1F9D #9D7D1F #1F9D7D
tetradic
#7D1F9D #9D3E1F #3F9D1F #1F7E9D
square
#7D1F9D #9D3E1F #3F9D1F #1F7E9D
split-complementary
#7D1F9D #7E9D1F #1F9D3E
monochromatic
#2C0B37 #54156A #7D1F9D #A629D0 #BC58DE

Accessibility & contrast

On white

8.22
#7D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F9D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F9D#FFFFFF#000000##FFFFFF
##7D1F9D1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1A519A
Tritanopia (blue-blind)
#7A3D5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1f9d;
/* rgb */ color: rgb(125, 31, 157);
/* oklch */ color: oklch(45.2% 0.195 315.5);
Tailwind
colors: {
  custom: {
    50: '#a767bb',
    500: '#7d1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f9d;
$custom-light: #a767bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f9d",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 284.762,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45241,
    "c": 0.19503,
    "h": 315.5
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#7D1F9D
secondary
#71C256
accent
#EA3E6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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