#7F157F#7F157F

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

Color values

HEX#7F157F
RGBrgb(127, 21, 127)
HSLhsl(300, 72%, 29%)
HSVhsv(300, 83%, 50%)
CMYKcmyk(0%, 83.5%, 0%, 50.2%)
CIE-LABlab(30.83, 54.75, -34.19)
CIE-LCHlch(30.83, 64.55, 328.02°)
OKLaboklab(42.78% 0.1529 -0.0949)
OKLCHoklch(42.78% 0.18 328.2)
XYZxyz(12.8512, 6.5816, 20.6681)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F157F #157F15
analogous
#4A157F #7F157F #7F154A
triadic
#7F157F #7F7F15 #157F7F
tetradic
#7F157F #7F4A15 #157F15 #154A7F
square
#7F157F #7F4A15 #157F15 #154A7F
split-complementary
#7F157F #4A7F15 #157F4A
monochromatic
#1A041A #4A0C4A #7F157F #B41EB4 #DD31DD

Accessibility & contrast

On white

9.07
#7F157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F157F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F157F#FFFFFF#000000##FFFFFF
##7F157F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#83284B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f157f;
/* rgb */ color: rgb(127, 21, 127);
/* oklch */ color: oklch(42.8% 0.180 328.2);
Tailwind
colors: {
  custom: {
    50: '#a862a4',
    500: '#7f157f',
    950: '#000000',
  },
}
SCSS
$custom: #7f157f;
$custom-light: #a862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f157f",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42777,
    "c": 0.17996,
    "h": 328.2
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#7F157F
secondary
#3CB43C
accent
#EE3939
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F157F

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

Preview Lab → · Contrast checker → · Palette generator →

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