#7F157A#7F157A

#7F157A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.176 H 330.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7F157A
RGBrgb(127, 21, 122)
HSLhsl(303, 72%, 29%)
HSVhsv(303, 83%, 50%)
CMYKcmyk(0%, 83.5%, 3.9%, 50.2%)
CIE-LABlab(30.53, 53.93, -31.52)
CIE-LCHlch(30.53, 62.47, 329.69°)
OKLaboklab(42.46% 0.1531 -0.0871)
OKLCHoklch(42.46% 0.176 330.3)
XYZxyz(12.5334, 6.4545, 18.9943)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F157A #157F1A
analogous
#4F157F #7F157A #7F1545
triadic
#7F157A #7A7F15 #157A7F
tetradic
#7F157A #7F4F15 #157F1A #15457F
square
#7F157A #7F4F15 #157F1A #15457F
split-complementary
#7F157A #457F15 #157F4F
monochromatic
#1A0419 #4A0C48 #7F157A #B41EAC #DD31D5

Accessibility & contrast

On white

9.17
#7F157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F157A
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F157A#FFFFFF#000000##FFFFFF
##7F157A1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#384D78
Tritanopia (blue-blind)
#842648
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f157a;
/* rgb */ color: rgb(127, 21, 122);
/* oklch */ color: oklch(42.5% 0.176 330.3);
Tailwind
colors: {
  custom: {
    50: '#a862a1',
    500: '#7f157a',
    950: '#000000',
  },
}
SCSS
$custom: #7f157a;
$custom-light: #a862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f157a",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 302.83,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42463,
    "c": 0.17615,
    "h": 330.3
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#7F157A
secondary
#3CB441
accent
#EE4239
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F157A

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

Preview Lab → · Contrast checker → · Palette generator →

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