#7D1E9F#7D1E9F

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

Color values

HEX#7D1E9F
RGBrgb(125, 30, 159)
HSLhsl(284, 68%, 37%)
HSVhsv(284, 81%, 62%)
CMYKcmyk(21.4%, 81.1%, 0%, 37.6%)
CIE-LABlab(33.55, 57.71, -49.59)
CIE-LCHlch(33.55, 76.09, 319.33°)
OKLaboklab(45.31% 0.1395 -0.1401)
OKLCHoklch(45.31% 0.198 314.9)
XYZxyz(15.1787, 7.7923, 33.4987)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E9F #409F1E
analogous
#3D1E9F #7D1E9F #9F1E81
triadic
#7D1E9F #9F7D1E #1E9F7D
tetradic
#7D1E9F #9F3D1E #409F1E #1E819F
square
#7D1E9F #9F3D1E #409F1E #1E819F
split-complementary
#7D1E9F #819F1E #1E9F3D
monochromatic
#2C0B38 #55146C #7D1E9F #A528D2 #BC58DF

Accessibility & contrast

On white

8.21
#7D1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1E9F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E9F#FFFFFF#000000##FFFFFF
##7D1E9F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#15519C
Tritanopia (blue-blind)
#7A3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1e9f;
/* rgb */ color: rgb(125, 30, 159);
/* oklch */ color: oklch(45.3% 0.198 314.9);
Tailwind
colors: {
  custom: {
    50: '#a767bc',
    500: '#7d1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e9f;
$custom-light: #a767bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e9f",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 284.186,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45313,
    "c": 0.1977,
    "h": 314.9
  },
  "luminance": 0.07792
}

Semantic roles & 50–950 ramp

primary
#7D1E9F
secondary
#73C356
accent
#EB3D6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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