#7F137F#7F137F

#7F137F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.182 H 328.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7F137F
RGBrgb(127, 19, 127)
HSLhsl(300, 74%, 29%)
HSVhsv(300, 85%, 50%)
CMYKcmyk(0%, 85%, 0%, 50.2%)
CIE-LABlab(30.67, 55.24, -34.46)
CIE-LCHlch(30.67, 65.11, 328.05°)
OKLaboklab(42.66% 0.1543 -0.0957)
OKLCHoklch(42.66% 0.182 328.2)
XYZxyz(12.8159, 6.5111, 20.6563)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F137F #137F13
analogous
#49137F #7F137F #7F1349
triadic
#7F137F #7F7F13 #137F7F
tetradic
#7F137F #7F4913 #137F13 #13497F
square
#7F137F #7F4913 #137F13 #13497F
split-complementary
#7F137F #497F13 #137F49
monochromatic
#1B041B #4A0B4A #7F137F #B41BB4 #E02DE0

Accessibility & contrast

On white

9.12
#7F137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F137F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F137F#FFFFFF#000000##FFFFFF
##7F137F1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#83274B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f137f;
/* rgb */ color: rgb(127, 19, 127);
/* oklch */ color: oklch(42.7% 0.182 328.2);
Tailwind
colors: {
  custom: {
    50: '#a862a4',
    500: '#7f137f',
    950: '#000000',
  },
}
SCSS
$custom: #7f137f;
$custom-light: #a862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f137f",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42658,
    "c": 0.18154,
    "h": 328.2
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#7F137F
secondary
#39B439
accent
#F13737
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F137F

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

Preview Lab → · Contrast checker → · Palette generator →

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