#7F156F#7F156F

#7F156F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.168 H 335.5°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7F156F
RGBrgb(127, 21, 111)
HSLhsl(309, 72%, 29%)
HSVhsv(309, 83%, 50%)
CMYKcmyk(0%, 83.5%, 12.6%, 50.2%)
CIE-LABlab(29.90, 52.20, -25.52)
CIE-LCHlch(29.90, 58.10, 333.95°)
OKLaboklab(41.81% 0.1529 -0.0698)
OKLCHoklch(41.81% 0.168 335.5)
XYZxyz(11.8900, 6.1972, 15.6058)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F156F #157F25
analogous
#5A157F #7F156F #7F153A
triadic
#7F156F #6F7F15 #156F7F
tetradic
#7F156F #7F5A15 #157F25 #153A7F
square
#7F156F #7F5A15 #157F25 #153A7F
split-complementary
#7F156F #3A7F15 #157F5A
monochromatic
#1A0417 #4A0C41 #7F156F #B41E9D #DD31C3

Accessibility & contrast

On white

9.38
#7F156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F156F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F156F#FFFFFF#000000##FFFFFF
##7F156F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#861F42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f156f;
/* rgb */ color: rgb(127, 21, 111);
/* oklch */ color: oklch(41.8% 0.168 335.5);
Tailwind
colors: {
  custom: {
    50: '#a86198',
    500: '#7f156f',
    950: '#000000',
  },
}
SCSS
$custom: #7f156f;
$custom-light: #a86198;
$custom-dark: #000000;
JSON
{
  "hex": "#7f156f",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 309.057,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.16807,
    "h": 335.5
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#7F156F
secondary
#3CB44E
accent
#EE5539
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F156F

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

Preview Lab → · Contrast checker → · Palette generator →

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