#7F157C#7F157C

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

Color values

HEX#7F157C
RGBrgb(127, 21, 124)
HSLhsl(302, 72%, 29%)
HSVhsv(302, 83%, 50%)
CMYKcmyk(0%, 83.5%, 2.4%, 50.2%)
CIE-LABlab(30.65, 54.26, -32.60)
CIE-LCHlch(30.65, 63.29, 329.00°)
OKLaboklab(42.59% 0.153 -0.0903)
OKLCHoklch(42.59% 0.178 329.5)
XYZxyz(12.6586, 6.5046, 19.6537)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F157C #157F18
analogous
#4D157F #7F157C #7F1547
triadic
#7F157C #7C7F15 #157C7F
tetradic
#7F157C #7F4D15 #157F18 #15477F
square
#7F157C #7F4D15 #157F18 #15477F
split-complementary
#7F157C #477F15 #157F4D
monochromatic
#1A041A #4A0C49 #7F157C #B41EAF #DD31D8

Accessibility & contrast

On white

9.13
#7F157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F157C
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F157C#FFFFFF#000000##FFFFFF
##7F157C1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#842749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f157c;
/* rgb */ color: rgb(127, 21, 124);
/* oklch */ color: oklch(42.6% 0.178 329.5);
Tailwind
colors: {
  custom: {
    50: '#a862a2',
    500: '#7f157c',
    950: '#000000',
  },
}
SCSS
$custom: #7f157c;
$custom-light: #a862a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f157c",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 301.698,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42587,
    "c": 0.17767,
    "h": 329.5
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

primary
#7F157C
secondary
#3CB43F
accent
#EE3F39
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F157C

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

Preview Lab → · Contrast checker → · Palette generator →

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