#7F157D#7F157D

#7F157D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.178 H 329.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7F157D
RGBrgb(127, 21, 125)
HSLhsl(301, 72%, 29%)
HSVhsv(301, 83%, 50%)
CMYKcmyk(0%, 83.5%, 1.6%, 50.2%)
CIE-LABlab(30.71, 54.42, -33.13)
CIE-LCHlch(30.71, 63.71, 328.67°)
OKLaboklab(42.65% 0.153 -0.0918)
OKLCHoklch(42.65% 0.178 329)
XYZxyz(12.7221, 6.5300, 19.9884)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F157D #157F17
analogous
#4C157F #7F157D #7F1548
triadic
#7F157D #7D7F15 #157D7F
tetradic
#7F157D #7F4C15 #157F17 #15487F
square
#7F157D #7F4C15 #157F17 #15487F
split-complementary
#7F157D #487F15 #157F4C
monochromatic
#1A041A #4A0C49 #7F157D #B41EB1 #DD31DA

Accessibility & contrast

On white

9.11
#7F157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F157D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F157D#FFFFFF#000000##FFFFFF
##7F157D1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#84274A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f157d;
/* rgb */ color: rgb(127, 21, 125);
/* oklch */ color: oklch(42.6% 0.178 329.0);
Tailwind
colors: {
  custom: {
    50: '#a862a3',
    500: '#7f157d',
    950: '#000000',
  },
}
SCSS
$custom: #7f157d;
$custom-light: #a862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f157d",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 301.132,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4265,
    "c": 0.17842,
    "h": 329
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#7F157D
secondary
#3CB43E
accent
#EE3D39
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F157D

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

Preview Lab → · Contrast checker → · Palette generator →

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