#7D1F81#7D1F81

#7D1F81 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.171 H 326.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7D1F81
RGBrgb(125, 31, 129)
HSLhsl(298, 61%, 31%)
HSVhsv(298, 76%, 51%)
CMYKcmyk(3.1%, 76%, 0%, 49.4%)
CIE-LABlab(31.64, 51.68, -34.19)
CIE-LCHlch(31.64, 61.97, 326.52°)
OKLaboklab(43.32% 0.1422 -0.095)
OKLCHoklch(43.32% 0.171 326.2)
XYZxyz(12.9096, 6.9258, 21.4215)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F81 #23811F
analogous
#4C1F81 #7D1F81 #811F54
triadic
#7D1F81 #817D1F #1F817D
tetradic
#7D1F81 #814C1F #23811F #1F5481
square
#7D1F81 #814C1F #23811F #1F5481
split-complementary
#7D1F81 #54811F #1F814C
monochromatic
#1D071E #4D1350 #7D1F81 #AD2BB2 #CD47D3

Accessibility & contrast

On white

8.81
#7D1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F81
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F81#FFFFFF#000000##FFFFFF
##7D1F811.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024384
Deuteranopia (green-blind)
#364E7F
Tritanopia (blue-blind)
#80304E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1f81;
/* rgb */ color: rgb(125, 31, 129);
/* oklch */ color: oklch(43.3% 0.171 326.2);
Tailwind
colors: {
  custom: {
    50: '#a666a6',
    500: '#7d1f81',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f81;
$custom-light: #a666a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f81",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 297.551,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43319,
    "c": 0.17099,
    "h": 326.2
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#7D1F81
secondary
#4CB448
accent
#E4434A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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