#7F1788#7F1788

#7F1788 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.185 H 324.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7F1788
RGBrgb(127, 23, 136)
HSLhsl(295, 71%, 31%)
HSVhsv(295, 83%, 53%)
CMYKcmyk(6.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(31.59, 55.78, -38.62)
CIE-LCHlch(31.59, 67.84, 325.31°)
OKLaboklab(43.49% 0.1508 -0.1078)
OKLCHoklch(43.49% 0.185 324.4)
XYZxyz(13.5024, 6.9033, 23.9091)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1788 #208817
analogous
#461788 #7F1788 #881758
triadic
#7F1788 #887F17 #17887F
tetradic
#7F1788 #884617 #208817 #175888
square
#7F1788 #884617 #208817 #175888
split-complementary
#7F1788 #588817 #178846
monochromatic
#1D051F #4E0E54 #7F1788 #B020BC #D13BDE

Accessibility & contrast

On white

8.82
#7F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1788
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1788#FFFFFF#000000##FFFFFF
##7F17881.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#822E51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1788;
/* rgb */ color: rgb(127, 23, 136);
/* oklch */ color: oklch(43.5% 0.185 324.4);
Tailwind
colors: {
  custom: {
    50: '#a863ab',
    500: '#7f1788',
    950: '#000000',
  },
}
SCSS
$custom: #7f1788;
$custom-light: #a863ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1788",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 295.221,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43491,
    "c": 0.18535,
    "h": 324.4
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#7F1788
secondary
#49BC3F
accent
#EE3A48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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