#7F1589#7F1589

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

Color values

HEX#7F1589
RGBrgb(127, 21, 137)
HSLhsl(295, 73%, 31%)
HSVhsv(295, 85%, 54%)
CMYKcmyk(7.3%, 84.7%, 0%, 46.3%)
CIE-LABlab(31.48, 56.47, -39.41)
CIE-LCHlch(31.48, 68.86, 325.09°)
OKLaboklab(43.43% 0.1521 -0.1101)
OKLCHoklch(43.43% 0.188 324.1)
XYZxyz(13.5355, 6.8554, 24.2724)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1589 #1F8915
analogous
#451589 #7F1589 #891559
triadic
#7F1589 #897F15 #15897F
tetradic
#7F1589 #894515 #1F8915 #155989
square
#7F1589 #894515 #1F8915 #155989
split-complementary
#7F1589 #598915 #158945
monochromatic
#1D051F #4E0D54 #7F1589 #B01DBE #D238E0

Accessibility & contrast

On white

8.86
#7F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1589
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1589#FFFFFF#000000##FFFFFF
##7F15891.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#812E51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1589;
/* rgb */ color: rgb(127, 21, 137);
/* oklch */ color: oklch(43.4% 0.188 324.1);
Tailwind
colors: {
  custom: {
    50: '#a863ac',
    500: '#7f1589',
    950: '#000000',
  },
}
SCSS
$custom: #7f1589;
$custom-light: #a863ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1589",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 294.828,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43434,
    "c": 0.18776,
    "h": 324.1
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#7F1589
secondary
#48BD3D
accent
#F03848
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1589

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

Preview Lab → · Contrast checker → · Palette generator →

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