#7F1B87#7F1B87

#7F1B87 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.181 H 324.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7F1B87
RGBrgb(127, 27, 135)
HSLhsl(296, 67%, 32%)
HSVhsv(296, 80%, 53%)
CMYKcmyk(5.9%, 80%, 0%, 47.1%)
CIE-LABlab(31.91, 54.47, -37.47)
CIE-LCHlch(31.91, 66.12, 325.48°)
OKLaboklab(43.7% 0.1477 -0.1045)
OKLCHoklch(43.7% 0.181 324.7)
XYZxyz(13.5172, 7.0461, 23.5650)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B87 #23871B
analogous
#491B87 #7F1B87 #871B59
triadic
#7F1B87 #877F1B #1B877F
tetradic
#7F1B87 #87491B #23871B #1B5987
square
#7F1B87 #87491B #23871B #1B5987
split-complementary
#7F1B87 #59871B #1B8749
monochromatic
#1F0721 #4F1154 #7F1B87 #AF25BA #CE43D9

Accessibility & contrast

On white

8.72
#7F1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1B87
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B87#FFFFFF#000000##FFFFFF
##7F1B871.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#823051
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1b87;
/* rgb */ color: rgb(127, 27, 135);
/* oklch */ color: oklch(43.7% 0.181 324.7);
Tailwind
colors: {
  custom: {
    50: '#a865aa',
    500: '#7f1b87',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b87;
$custom-light: #a865aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b87",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 295.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43701,
    "c": 0.18095,
    "h": 324.7
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#7F1B87
secondary
#4CBA44
accent
#EA3E4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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