#7F1580#7F1580

#7F1580 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.181 H 327.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7F1580
RGBrgb(127, 21, 128)
HSLhsl(299, 72%, 29%)
HSVhsv(299, 84%, 50%)
CMYKcmyk(0.8%, 83.6%, 0%, 49.8%)
CIE-LABlab(30.90, 54.92, -34.72)
CIE-LCHlch(30.90, 64.98, 327.70°)
OKLaboklab(42.84% 0.1528 -0.0964)
OKLCHoklch(42.84% 0.181 327.7)
XYZxyz(12.9167, 6.6078, 21.0130)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1580 #168015
analogous
#4A1580 #7F1580 #80154C
triadic
#7F1580 #807F15 #15807F
tetradic
#7F1580 #804A15 #168015 #154C80
square
#7F1580 #804A15 #168015 #154C80
split-complementary
#7F1580 #4C8015 #15804A
monochromatic
#1A041A #4B0C4B #7F1580 #B31EB5 #DC32DD

Accessibility & contrast

On white

9.05
#7F1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1580
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1580#FFFFFF#000000##FFFFFF
##7F15801.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#354D7E
Tritanopia (blue-blind)
#83294C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1580;
/* rgb */ color: rgb(127, 21, 128);
/* oklch */ color: oklch(42.8% 0.181 327.7);
Tailwind
colors: {
  custom: {
    50: '#a862a5',
    500: '#7f1580',
    950: '#000000',
  },
}
SCSS
$custom: #7f1580;
$custom-light: #a862a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1580",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 299.439,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.18073,
    "h": 327.7
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#7F1580
secondary
#3DB53C
accent
#EF393B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1580

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

Preview Lab → · Contrast checker → · Palette generator →

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