#7D1F88#7D1F88

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

Color values

HEX#7D1F88
RGBrgb(125, 31, 136)
HSLhsl(294, 63%, 33%)
HSVhsv(294, 77%, 53%)
CMYKcmyk(8.1%, 77.2%, 0%, 46.7%)
CIE-LABlab(32.07, 52.95, -37.85)
CIE-LCHlch(32.07, 65.09, 324.44°)
OKLaboklab(43.77% 0.1418 -0.1057)
OKLCHoklch(43.77% 0.177 323.3)
XYZxyz(13.3910, 7.1183, 23.9564)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F88 #2A881F
analogous
#481F88 #7D1F88 #881F5F
triadic
#7D1F88 #887D1F #1F887D
tetradic
#7D1F88 #88481F #2A881F #1F5F88
square
#7D1F88 #88481F #2A881F #1F5F88
split-complementary
#7D1F88 #5F881F #1F8848
monochromatic
#210824 #4F1456 #7D1F88 #AB2ABA #C84BD6

Accessibility & contrast

On white

8.66
#7D1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F88
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F88#FFFFFF#000000##FFFFFF
##7D1F881.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#314F86
Tritanopia (blue-blind)
#7F3352
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1f88;
/* rgb */ color: rgb(125, 31, 136);
/* oklch */ color: oklch(43.8% 0.177 323.3);
Tailwind
colors: {
  custom: {
    50: '#a666ab',
    500: '#7d1f88',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f88;
$custom-light: #a666ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f88",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 293.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43771,
    "c": 0.17687,
    "h": 323.3
  },
  "luminance": 0.07118
}

Semantic roles & 50–950 ramp

primary
#7D1F88
secondary
#56B94A
accent
#E64253
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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