#7F1989#7F1989

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

Color values

HEX#7F1989
RGBrgb(127, 25, 137)
HSLhsl(295, 69%, 32%)
HSVhsv(295, 82%, 54%)
CMYKcmyk(7.3%, 81.8%, 0%, 46.3%)
CIE-LABlab(31.84, 55.41, -38.83)
CIE-LCHlch(31.84, 67.66, 324.98°)
OKLaboklab(43.69% 0.1492 -0.1085)
OKLCHoklch(43.69% 0.184 324)
XYZxyz(13.6150, 7.0143, 24.2988)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1989 #238919
analogous
#471989 #7F1989 #89195B
triadic
#7F1989 #897F19 #19897F
tetradic
#7F1989 #894719 #238919 #195B89
square
#7F1989 #894719 #238919 #195B89
split-complementary
#7F1989 #5B8919 #198947
monochromatic
#1F0621 #4F1055 #7F1989 #AF22BD #CE40DC

Accessibility & contrast

On white

8.74
#7F1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1989
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1989#FFFFFF#000000##FFFFFF
##7F19891.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#304F86
Tritanopia (blue-blind)
#813052
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1989;
/* rgb */ color: rgb(127, 25, 137);
/* oklch */ color: oklch(43.7% 0.184 324.0);
Tailwind
colors: {
  custom: {
    50: '#a864ac',
    500: '#7f1989',
    950: '#000000',
  },
}
SCSS
$custom: #7f1989;
$custom-light: #a864ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1989",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 294.643,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.18442,
    "h": 324
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#7F1989
secondary
#4CBC41
accent
#EC3C4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1989

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

Preview Lab → · Contrast checker → · Palette generator →

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