#7D1F89#7D1F89

#7D1F89 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.178 H 322.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7D1F89
RGBrgb(125, 31, 137)
HSLhsl(293, 63%, 33%)
HSVhsv(293, 77%, 54%)
CMYKcmyk(8.8%, 77.4%, 0%, 46.3%)
CIE-LABlab(32.14, 53.14, -38.37)
CIE-LCHlch(32.14, 65.54, 324.17°)
OKLaboklab(43.84% 0.1417 -0.1072)
OKLCHoklch(43.84% 0.178 322.9)
XYZxyz(13.4624, 7.1469, 24.3325)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F89 #2B891F
analogous
#481F89 #7D1F89 #891F60
triadic
#7D1F89 #897D1F #1F897D
tetradic
#7D1F89 #89481F #2B891F #1F6089
square
#7D1F89 #89481F #2B891F #1F6089
split-complementary
#7D1F89 #60891F #1F8948
monochromatic
#220825 #4F1457 #7D1F89 #AB2ABB #C74CD6

Accessibility & contrast

On white

8.64
#7D1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7D1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F89
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F89#FFFFFF#000000##FFFFFF
##7D1F891.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#304F87
Tritanopia (blue-blind)
#7F3353
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d1f89;
/* rgb */ color: rgb(125, 31, 137);
/* oklch */ color: oklch(43.8% 0.178 322.9);
Tailwind
colors: {
  custom: {
    50: '#a666ac',
    500: '#7d1f89',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f89;
$custom-light: #a666ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f89",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 293.208,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43837,
    "c": 0.17772,
    "h": 322.9
  },
  "luminance": 0.07146
}

Semantic roles & 50–950 ramp

primary
#7D1F89
secondary
#57B94B
accent
#E64254
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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