#7F177D#7F177D

#7F177D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.177 H 329.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7F177D
RGBrgb(127, 23, 125)
HSLhsl(301, 69%, 29%)
HSVhsv(301, 82%, 50%)
CMYKcmyk(0%, 81.9%, 1.6%, 50.2%)
CIE-LABlab(30.89, 53.89, -32.84)
CIE-LCHlch(30.89, 63.11, 328.64°)
OKLaboklab(42.78% 0.1515 -0.091)
OKLCHoklch(42.78% 0.177 329)
XYZxyz(12.7604, 6.6065, 20.0012)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F177D #177F19
analogous
#4D177F #7F177D #7F1749
triadic
#7F177D #7D7F17 #177D7F
tetradic
#7F177D #7F4D17 #177F19 #17497F
square
#7F177D #7F4D17 #177F19 #17497F
split-complementary
#7F177D #497F17 #177F4D
monochromatic
#1A0519 #4B0E4A #7F177D #B320B0 #DB36D7

Accessibility & contrast

On white

9.05
#7F177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F177D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F177D#FFFFFF#000000##FFFFFF
##7F177D1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#84284A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f177d;
/* rgb */ color: rgb(127, 23, 125);
/* oklch */ color: oklch(42.8% 0.177 329.0);
Tailwind
colors: {
  custom: {
    50: '#a863a3',
    500: '#7f177d',
    950: '#000000',
  },
}
SCSS
$custom: #7f177d;
$custom-light: #a863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f177d",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 301.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42779,
    "c": 0.17672,
    "h": 329
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#7F177D
secondary
#3EB440
accent
#EC3F3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F177D

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

Preview Lab → · Contrast checker → · Palette generator →

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