#7F156E#7F156E

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

Color values

HEX#7F156E
RGBrgb(127, 21, 110)
HSLhsl(310, 72%, 29%)
HSVhsv(310, 83%, 50%)
CMYKcmyk(0%, 83.5%, 13.4%, 50.2%)
CIE-LABlab(29.85, 52.05, -24.96)
CIE-LCHlch(29.85, 57.73, 334.38°)
OKLaboklab(41.76% 0.1528 -0.0682)
OKLCHoklch(41.76% 0.167 336)
XYZxyz(11.8352, 6.1753, 15.3175)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F156E #157F26
analogous
#5B157F #7F156E #7F1539
triadic
#7F156E #6E7F15 #156E7F
tetradic
#7F156E #7F5B15 #157F26 #15397F
square
#7F156E #7F5B15 #157F26 #15397F
split-complementary
#7F156E #397F15 #157F5B
monochromatic
#1A0417 #4A0C41 #7F156E #B41E9B #DD31C1

Accessibility & contrast

On white

9.40
#7F156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F156E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F156E#FFFFFF#000000##FFFFFF
##7F156E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C70
Deuteranopia (green-blind)
#3E4C6C
Tritanopia (blue-blind)
#861F41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f156e;
/* rgb */ color: rgb(127, 21, 110);
/* oklch */ color: oklch(41.8% 0.167 336.0);
Tailwind
colors: {
  custom: {
    50: '#a86198',
    500: '#7f156e',
    950: '#000000',
  },
}
SCSS
$custom: #7f156e;
$custom-light: #a86198;
$custom-dark: #000000;
JSON
{
  "hex": "#7f156e",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 309.623,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.16736,
    "h": 336
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#7F156E
secondary
#3CB44F
accent
#EE5639
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F156E

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

Preview Lab → · Contrast checker → · Palette generator →

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