#7D1F9E#7D1F9E

#7D1F9E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.196 H 315.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7D1F9E
RGBrgb(125, 31, 158)
HSLhsl(284, 67%, 37%)
HSVhsv(284, 80%, 62%)
CMYKcmyk(20.9%, 80.4%, 0%, 38%)
CIE-LABlab(33.58, 57.19, -48.93)
CIE-LCHlch(33.58, 75.26, 319.45°)
OKLaboklab(45.32% 0.1389 -0.1382)
OKLCHoklch(45.32% 0.196 315.1)
XYZxyz(15.1180, 7.8091, 33.0521)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F9E #409E1F
analogous
#3D1F9E #7D1F9E #9E1F80
triadic
#7D1F9E #9E7D1F #1F9E7D
tetradic
#7D1F9E #9E3D1F #409E1F #1F809E
square
#7D1F9E #9E3D1F #409E1F #1F809E
split-complementary
#7D1F9E #809E1F #1F9E3D
monochromatic
#2C0B38 #55156B #7D1F9E #A529D1 #BC59DE

Accessibility & contrast

On white

8.20
#7D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7D1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F9E
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F9E#FFFFFF#000000##FFFFFF
##7D1F9E1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#18519B
Tritanopia (blue-blind)
#7A3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1f9e;
/* rgb */ color: rgb(125, 31, 158);
/* oklch */ color: oklch(45.3% 0.196 315.1);
Tailwind
colors: {
  custom: {
    50: '#a767bb',
    500: '#7d1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f9e;
$custom-light: #a767bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f9e",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 284.409,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45315,
    "c": 0.1959,
    "h": 315.1
  },
  "luminance": 0.07809
}

Semantic roles & 50–950 ramp

primary
#7D1F9E
secondary
#73C256
accent
#EA3E6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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