#7F1789#7F1789

#7F1789 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.6% C 0.186 H 324.0°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7F1789
RGBrgb(127, 23, 137)
HSLhsl(295, 71%, 31%)
HSVhsv(295, 83%, 54%)
CMYKcmyk(7.3%, 83.2%, 0%, 46.3%)
CIE-LABlab(31.65, 55.96, -39.13)
CIE-LCHlch(31.65, 68.28, 325.03°)
OKLaboklab(43.56% 0.1506 -0.1093)
OKLCHoklch(43.56% 0.186 324)
XYZxyz(13.5738, 6.9318, 24.2851)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1789 #218917
analogous
#461789 #7F1789 #89175A
triadic
#7F1789 #897F17 #17897F
tetradic
#7F1789 #894617 #218917 #175A89
square
#7F1789 #894617 #218917 #175A89
split-complementary
#7F1789 #5A8917 #178946
monochromatic
#1E0520 #4E0E55 #7F1789 #B020BD #D03CDE

Accessibility & contrast

On white

8.80
#7F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1789
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1789#FFFFFF#000000##FFFFFF
##7F17891.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#2F4E86
Tritanopia (blue-blind)
#812F51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1789;
/* rgb */ color: rgb(127, 23, 137);
/* oklch */ color: oklch(43.6% 0.186 324.0);
Tailwind
colors: {
  custom: {
    50: '#a863ac',
    500: '#7f1789',
    950: '#000000',
  },
}
SCSS
$custom: #7f1789;
$custom-light: #a863ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1789",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 294.737,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43558,
    "c": 0.18614,
    "h": 324
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#7F1789
secondary
#4ABD3F
accent
#EE3A4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1789

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

Preview Lab → · Contrast checker → · Palette generator →

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