#7D1F86#7D1F86

#7D1F86 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.175 H 324.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7D1F86
RGBrgb(125, 31, 134)
HSLhsl(295, 62%, 32%)
HSVhsv(295, 77%, 53%)
CMYKcmyk(6.7%, 76.9%, 0%, 47.5%)
CIE-LABlab(31.95, 52.59, -36.81)
CIE-LCHlch(31.95, 64.19, 325.01°)
OKLaboklab(43.64% 0.1419 -0.1027)
OKLCHoklch(43.64% 0.175 324.1)
XYZxyz(13.2501, 7.0620, 23.2148)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F86 #28861F
analogous
#491F86 #7D1F86 #861F5C
triadic
#7D1F86 #867D1F #1F867D
tetradic
#7D1F86 #86491F #28861F #1F5C86
square
#7D1F86 #86491F #28861F #1F5C86
split-complementary
#7D1F86 #5C861F #1F8649
monochromatic
#200823 #4F1454 #7D1F86 #AB2AB8 #C94AD5

Accessibility & contrast

On white

8.71
#7D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7D1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F86
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F86#FFFFFF#000000##FFFFFF
##7D1F861.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#334F84
Tritanopia (blue-blind)
#7F3251
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1f86;
/* rgb */ color: rgb(125, 31, 134);
/* oklch */ color: oklch(43.6% 0.175 324.1);
Tailwind
colors: {
  custom: {
    50: '#a666aa',
    500: '#7d1f86',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f86;
$custom-light: #a666aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f86",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 294.757,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4364,
    "c": 0.17517,
    "h": 324.1
  },
  "luminance": 0.07061
}

Semantic roles & 50–950 ramp

primary
#7D1F86
secondary
#53B849
accent
#E54251
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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