#7F137D#7F137D

#7F137D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.180 H 329.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7F137D
RGBrgb(127, 19, 125)
HSLhsl(301, 74%, 29%)
HSVhsv(301, 85%, 50%)
CMYKcmyk(0%, 85%, 1.6%, 50.2%)
CIE-LABlab(30.54, 54.91, -33.40)
CIE-LCHlch(30.54, 64.27, 328.69°)
OKLaboklab(42.53% 0.1544 -0.0926)
OKLCHoklch(42.53% 0.18 329.1)
XYZxyz(12.6868, 6.4594, 19.9767)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F137D #137F15
analogous
#4B137F #7F137D #7F1347
triadic
#7F137D #7D7F13 #137D7F
tetradic
#7F137D #7F4B13 #137F15 #13477F
square
#7F137D #7F4B13 #137F15 #13477F
split-complementary
#7F137D #477F13 #137F4B
monochromatic
#1B041A #4A0B49 #7F137D #B41BB1 #E02DDC

Accessibility & contrast

On white

9.16
#7F137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F137D
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F137D#FFFFFF#000000##FFFFFF
##7F137D1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#84264A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f137d;
/* rgb */ color: rgb(127, 19, 125);
/* oklch */ color: oklch(42.5% 0.180 329.1);
Tailwind
colors: {
  custom: {
    50: '#a862a3',
    500: '#7f137d',
    950: '#000000',
  },
}
SCSS
$custom: #7f137d;
$custom-light: #a862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f137d",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 301.111,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.4253,
    "c": 0.18002,
    "h": 329.1
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#7F137D
secondary
#39B43C
accent
#F13B37
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F137D

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

Preview Lab → · Contrast checker → · Palette generator →

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