#7F157E#7F157E

#7F157E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.179 H 328.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7F157E
RGBrgb(127, 21, 126)
HSLhsl(301, 72%, 29%)
HSVhsv(301, 83%, 50%)
CMYKcmyk(0%, 83.5%, 0.8%, 50.2%)
CIE-LABlab(30.77, 54.59, -33.66)
CIE-LCHlch(30.77, 64.13, 328.34°)
OKLaboklab(42.71% 0.153 -0.0934)
OKLCHoklch(42.71% 0.179 328.6)
XYZxyz(12.7863, 6.5557, 20.3266)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F157E #157F16
analogous
#4B157F #7F157E #7F1549
triadic
#7F157E #7E7F15 #157E7F
tetradic
#7F157E #7F4B15 #157F16 #15497F
square
#7F157E #7F4B15 #157F16 #15497F
split-complementary
#7F157E #497F15 #157F4B
monochromatic
#1A041A #4A0C4A #7F157E #B41EB2 #DD31DB

Accessibility & contrast

On white

9.09
#7F157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F157E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F157E#FFFFFF#000000##FFFFFF
##7F157E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#83284B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f157e;
/* rgb */ color: rgb(127, 21, 126);
/* oklch */ color: oklch(42.7% 0.179 328.6);
Tailwind
colors: {
  custom: {
    50: '#a862a4',
    500: '#7f157e',
    950: '#000000',
  },
}
SCSS
$custom: #7f157e;
$custom-light: #a862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f157e",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 300.566,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42713,
    "c": 0.17919,
    "h": 328.6
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#7F157E
secondary
#3CB43D
accent
#EE3B39
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F157E

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

Preview Lab → · Contrast checker → · Palette generator →

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