#7F157B#7F157B

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

Color values

HEX#7F157B
RGBrgb(127, 21, 123)
HSLhsl(302, 72%, 29%)
HSVhsv(302, 83%, 50%)
CMYKcmyk(0%, 83.5%, 3.1%, 50.2%)
CIE-LABlab(30.59, 54.09, -32.06)
CIE-LCHlch(30.59, 62.88, 329.34°)
OKLaboklab(42.53% 0.1531 -0.0887)
OKLCHoklch(42.53% 0.177 329.9)
XYZxyz(12.5957, 6.4794, 19.3223)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F157B #157F19
analogous
#4E157F #7F157B #7F1546
triadic
#7F157B #7B7F15 #157B7F
tetradic
#7F157B #7F4E15 #157F19 #15467F
square
#7F157B #7F4E15 #157F19 #15467F
split-complementary
#7F157B #467F15 #157F4E
monochromatic
#1A0419 #4A0C48 #7F157B #B41EAE #DD31D7

Accessibility & contrast

On white

9.15
#7F157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F157B
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F157B#FFFFFF#000000##FFFFFF
##7F157B1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#842649
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f157b;
/* rgb */ color: rgb(127, 21, 123);
/* oklch */ color: oklch(42.5% 0.177 329.9);
Tailwind
colors: {
  custom: {
    50: '#a862a1',
    500: '#7f157b',
    950: '#000000',
  },
}
SCSS
$custom: #7f157b;
$custom-light: #a862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f157b",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 302.264,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42525,
    "c": 0.17691,
    "h": 329.9
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#7F157B
secondary
#3CB440
accent
#EE4039
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F157B

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

Preview Lab → · Contrast checker → · Palette generator →

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