#7D1F87#7D1F87

#7D1F87 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.176 H 323.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7D1F87
RGBrgb(125, 31, 135)
HSLhsl(294, 63%, 33%)
HSVhsv(294, 77%, 53%)
CMYKcmyk(7.4%, 77%, 0%, 47.1%)
CIE-LABlab(32.01, 52.77, -37.33)
CIE-LCHlch(32.01, 64.64, 324.72°)
OKLaboklab(43.71% 0.1419 -0.1042)
OKLCHoklch(43.71% 0.176 323.7)
XYZxyz(13.3202, 7.0900, 23.5839)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F87 #29871F
analogous
#491F87 #7D1F87 #871F5D
triadic
#7D1F87 #877D1F #1F877D
tetradic
#7D1F87 #87491F #29871F #1F5D87
square
#7D1F87 #87491F #29871F #1F5D87
split-complementary
#7D1F87 #5D871F #1F8749
monochromatic
#210823 #4F1455 #7D1F87 #AB2AB9 #C84BD6

Accessibility & contrast

On white

8.69
#7D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7D1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F87
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F87#FFFFFF#000000##FFFFFF
##7D1F871.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#7F3252
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1f87;
/* rgb */ color: rgb(125, 31, 135);
/* oklch */ color: oklch(43.7% 0.176 323.7);
Tailwind
colors: {
  custom: {
    50: '#a666aa',
    500: '#7d1f87',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f87;
$custom-light: #a666aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f87",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 294.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43705,
    "c": 0.17602,
    "h": 323.7
  },
  "luminance": 0.07089
}

Semantic roles & 50–950 ramp

primary
#7D1F87
secondary
#54B84A
accent
#E64252
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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