#7F137E#7F137E

#7F137E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.181 H 328.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7F137E
RGBrgb(127, 19, 126)
HSLhsl(301, 74%, 29%)
HSVhsv(301, 85%, 50%)
CMYKcmyk(0%, 85%, 0.8%, 50.2%)
CIE-LABlab(30.60, 55.08, -33.93)
CIE-LCHlch(30.60, 64.69, 328.37°)
OKLaboklab(42.59% 0.1543 -0.0941)
OKLCHoklch(42.59% 0.181 328.6)
XYZxyz(12.7510, 6.4851, 20.3148)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F137E #137F14
analogous
#4A137F #7F137E #7F1348
triadic
#7F137E #7E7F13 #137E7F
tetradic
#7F137E #7F4A13 #137F14 #13487F
square
#7F137E #7F4A13 #137F14 #13487F
split-complementary
#7F137E #487F13 #137F4A
monochromatic
#1B041A #4A0B49 #7F137E #B41BB3 #E02DDE

Accessibility & contrast

On white

9.14
#7F137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F137E
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F137E#FFFFFF#000000##FFFFFF
##7F137E1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#354D7C
Tritanopia (blue-blind)
#83274A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f137e;
/* rgb */ color: rgb(127, 19, 126);
/* oklch */ color: oklch(42.6% 0.181 328.6);
Tailwind
colors: {
  custom: {
    50: '#a862a4',
    500: '#7f137e',
    950: '#000000',
  },
}
SCSS
$custom: #7f137e;
$custom-light: #a862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f137e",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 300.556,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42594,
    "c": 0.18078,
    "h": 328.6
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#7F137E
secondary
#39B43A
accent
#F13937
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F137E

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

Preview Lab → · Contrast checker → · Palette generator →

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