#7F1881#7F1881

#7F1881 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.179 H 327.3°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7F1881
RGBrgb(127, 24, 129)
HSLhsl(299, 69%, 30%)
HSVhsv(299, 81%, 51%)
CMYKcmyk(1.6%, 81.4%, 0%, 49.4%)
CIE-LABlab(31.23, 54.29, -34.81)
CIE-LCHlch(31.23, 64.50, 327.33°)
OKLaboklab(43.1% 0.1505 -0.0967)
OKLCHoklch(43.1% 0.179 327.3)
XYZxyz(13.0413, 6.7512, 21.3809)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1881 #1A8118
analogous
#4A1881 #7F1881 #81184F
triadic
#7F1881 #817F18 #18817F
tetradic
#7F1881 #814A18 #1A8118 #184F81
square
#7F1881 #814A18 #1A8118 #184F81
split-complementary
#7F1881 #4F8118 #18814A
monochromatic
#19051A #4C0E4D #7F1881 #B222B5 #D739DA

Accessibility & contrast

On white

8.94
#7F1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1881
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1881#FFFFFF#000000##FFFFFF
##7F18811.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#354E7F
Tritanopia (blue-blind)
#832B4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1881;
/* rgb */ color: rgb(127, 24, 129);
/* oklch */ color: oklch(43.1% 0.179 327.3);
Tailwind
colors: {
  custom: {
    50: '#a863a6',
    500: '#7f1881',
    950: '#000000',
  },
}
SCSS
$custom: #7f1881;
$custom-light: #a863a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1881",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 298.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.43099,
    "c": 0.17894,
    "h": 327.3
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#7F1881
secondary
#42B540
accent
#EB3C40
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1881

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

Preview Lab → · Contrast checker → · Palette generator →

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