#7F137B#7F137B

#7F137B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.179 H 329.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7F137B
RGBrgb(127, 19, 123)
HSLhsl(302, 74%, 29%)
HSVhsv(302, 85%, 50%)
CMYKcmyk(0%, 85%, 3.1%, 50.2%)
CIE-LABlab(30.42, 54.59, -32.33)
CIE-LCHlch(30.42, 63.44, 329.36°)
OKLaboklab(42.41% 0.1545 -0.0895)
OKLCHoklch(42.41% 0.179 329.9)
XYZxyz(12.5604, 6.4089, 19.3106)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F137B #137F17
analogous
#4D137F #7F137B #7F1345
triadic
#7F137B #7B7F13 #137B7F
tetradic
#7F137B #7F4D13 #137F17 #13457F
square
#7F137B #7F4D13 #137F17 #13457F
split-complementary
#7F137B #457F13 #137F4D
monochromatic
#1B041A #4A0B47 #7F137B #B41BAF #E02DD9

Accessibility & contrast

On white

9.20
#7F137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F137B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F137B#FFFFFF#000000##FFFFFF
##7F137B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#842548
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f137b;
/* rgb */ color: rgb(127, 19, 123);
/* oklch */ color: oklch(42.4% 0.179 329.9);
Tailwind
colors: {
  custom: {
    50: '#a861a1',
    500: '#7f137b',
    950: '#000000',
  },
}
SCSS
$custom: #7f137b;
$custom-light: #a861a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f137b",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 302.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42405,
    "c": 0.17852,
    "h": 329.9
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#7F137B
secondary
#39B43E
accent
#F13E37
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F137B

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

Preview Lab → · Contrast checker → · Palette generator →

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