#7F137A#7F137A

#7F137A is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.178 H 330.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7F137A
RGBrgb(127, 19, 122)
HSLhsl(303, 74%, 29%)
HSVhsv(303, 85%, 50%)
CMYKcmyk(0%, 85%, 3.9%, 50.2%)
CIE-LABlab(30.36, 54.42, -31.80)
CIE-LCHlch(30.36, 63.03, 329.71°)
OKLaboklab(42.34% 0.1545 -0.0879)
OKLCHoklch(42.34% 0.178 330.4)
XYZxyz(12.4981, 6.3839, 18.9826)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F137A #137F18
analogous
#4E137F #7F137A #7F1344
triadic
#7F137A #7A7F13 #137A7F
tetradic
#7F137A #7F4E13 #137F18 #13447F
square
#7F137A #7F4E13 #137F18 #13447F
split-complementary
#7F137A #447F13 #137F4E
monochromatic
#1B041A #4A0B47 #7F137A #B41BAD #E02DD7

Accessibility & contrast

On white

9.22
#7F137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F137A
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F137A#FFFFFF#000000##FFFFFF
##7F137A1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#384C78
Tritanopia (blue-blind)
#842548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f137a;
/* rgb */ color: rgb(127, 19, 122);
/* oklch */ color: oklch(42.3% 0.178 330.4);
Tailwind
colors: {
  custom: {
    50: '#a861a1',
    500: '#7f137a',
    950: '#000000',
  },
}
SCSS
$custom: #7f137a;
$custom-light: #a861a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f137a",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 302.778,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.17777,
    "h": 330.4
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#7F137A
secondary
#39B43F
accent
#F14037
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F137A

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

Preview Lab → · Contrast checker → · Palette generator →

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