#7F1B77#7F1B77

#7F1B77 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.168 H 331.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7F1B77
RGBrgb(127, 27, 119)
HSLhsl(305, 65%, 30%)
HSVhsv(305, 79%, 50%)
CMYKcmyk(0%, 78.7%, 6.3%, 50.2%)
CIE-LABlab(30.95, 51.74, -28.97)
CIE-LCHlch(30.95, 59.30, 330.75°)
OKLaboklab(42.7% 0.1482 -0.0798)
OKLCHoklch(42.7% 0.168 331.7)
XYZxyz(12.4741, 6.6288, 18.0717)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B77 #1B7F23
analogous
#551B7F #7F1B77 #7F1B45
triadic
#7F1B77 #777F1B #1B777F
tetradic
#7F1B77 #7F551B #1B7F23 #1B457F
square
#7F1B77 #7F551B #1B7F23 #1B457F
split-complementary
#7F1B77 #457F1B #1B7F55
monochromatic
#1A0618 #4D1048 #7F1B77 #B126A6 #D63ECA

Accessibility & contrast

On white

9.03
#7F1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B77
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B77#FFFFFF#000000##FFFFFF
##7F1B771.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124079
Deuteranopia (green-blind)
#3C4E75
Tritanopia (blue-blind)
#842848
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1b77;
/* rgb */ color: rgb(127, 27, 119);
/* oklch */ color: oklch(42.7% 0.168 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8649e',
    500: '#7f1b77',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b77;
$custom-light: #a8649e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b77",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 304.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42703,
    "c": 0.16828,
    "h": 331.7
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#7F1B77
secondary
#43B34C
accent
#E84D40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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