#7D1B87#7D1B87

#7D1B87 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.180 H 323.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7D1B87
RGBrgb(125, 27, 135)
HSLhsl(294, 67%, 32%)
HSVhsv(294, 80%, 53%)
CMYKcmyk(7.4%, 80%, 0%, 47.1%)
CIE-LABlab(31.56, 54.06, -38.05)
CIE-LCHlch(31.56, 66.10, 324.86°)
OKLaboklab(43.39% 0.1454 -0.1062)
OKLCHoklch(43.39% 0.18 323.8)
XYZxyz(13.2222, 6.8939, 23.5512)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B87 #25871B
analogous
#471B87 #7D1B87 #871B5B
triadic
#7D1B87 #877D1B #1B877D
tetradic
#7D1B87 #87471B #25871B #1B5B87
square
#7D1B87 #87471B #25871B #1B5B87
split-complementary
#7D1B87 #5B871B #1B8747
monochromatic
#1F0721 #4E1154 #7D1B87 #AC25BA #CB43D9

Accessibility & contrast

On white

8.83
#7D1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7D1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1B87
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B87#FFFFFF#000000##FFFFFF
##7D1B871.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7F3051
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1b87;
/* rgb */ color: rgb(125, 27, 135);
/* oklch */ color: oklch(43.4% 0.180 323.8);
Tailwind
colors: {
  custom: {
    50: '#a664aa',
    500: '#7d1b87',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b87;
$custom-light: #a664aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b87",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 294.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43388,
    "c": 0.18008,
    "h": 323.8
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

primary
#7D1B87
secondary
#4FBA44
accent
#EA3E4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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