#7D1F9B#7D1F9B

#7D1F9B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.193 H 316.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7D1F9B
RGBrgb(125, 31, 155)
HSLhsl(285, 67%, 36%)
HSVhsv(285, 80%, 61%)
CMYKcmyk(19.4%, 80%, 0%, 39.2%)
CIE-LABlab(33.37, 56.59, -47.45)
CIE-LCHlch(33.37, 73.86, 320.02°)
OKLaboklab(45.09% 0.1394 -0.1338)
OKLCHoklch(45.09% 0.193 316.2)
XYZxyz(14.8629, 7.7071, 31.7087)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F9B #3D9B1F
analogous
#3F1F9B #7D1F9B #9B1F7B
triadic
#7D1F9B #9B7D1F #1F9B7D
tetradic
#7D1F9B #9B3F1F #3D9B1F #1F7B9B
square
#7D1F9B #9B3F1F #3D9B1F #1F7B9B
split-complementary
#7D1F9B #7B9B1F #1F9B3F
monochromatic
#2B0B35 #541568 #7D1F9B #A629CE #BD57DD

Accessibility & contrast

On white

8.26
#7D1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F9B
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F9B#FFFFFF#000000##FFFFFF
##7D1F9B1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1D5198
Tritanopia (blue-blind)
#7B3C5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1f9b;
/* rgb */ color: rgb(125, 31, 155);
/* oklch */ color: oklch(45.1% 0.193 316.2);
Tailwind
colors: {
  custom: {
    50: '#a767b9',
    500: '#7d1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f9b;
$custom-light: #a767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f9b",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 285.484,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45094,
    "c": 0.19326,
    "h": 316.2
  },
  "luminance": 0.07707
}

Semantic roles & 50–950 ramp

primary
#7D1F9B
secondary
#6FC155
accent
#EA3E68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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