#7F177F#7F177F

#7F177F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.178 H 328.1°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7F177F
RGBrgb(127, 23, 127)
HSLhsl(300, 69%, 29%)
HSVhsv(300, 82%, 50%)
CMYKcmyk(0%, 81.9%, 0%, 50.2%)
CIE-LABlab(31.02, 54.23, -33.90)
CIE-LCHlch(31.02, 63.96, 327.99°)
OKLaboklab(42.91% 0.1514 -0.0941)
OKLCHoklch(42.91% 0.178 328.1)
XYZxyz(12.8894, 6.6581, 20.6808)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F177F #177F17
analogous
#4B177F #7F177F #7F174B
triadic
#7F177F #7F7F17 #177F7F
tetradic
#7F177F #7F4B17 #177F17 #174B7F
square
#7F177F #7F4B17 #177F17 #174B7F
split-complementary
#7F177F #4B7F17 #177F4B
monochromatic
#1A051A #4B0E4B #7F177F #B320B3 #DB36DB

Accessibility & contrast

On white

9.01
#7F177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F177F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F177F#FFFFFF#000000##FFFFFF
##7F177F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#83294C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f177f;
/* rgb */ color: rgb(127, 23, 127);
/* oklch */ color: oklch(42.9% 0.178 328.1);
Tailwind
colors: {
  custom: {
    50: '#a863a4',
    500: '#7f177f',
    950: '#000000',
  },
}
SCSS
$custom: #7f177f;
$custom-light: #a863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f177f",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42905,
    "c": 0.17826,
    "h": 328.1
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#7F177F
secondary
#3EB43E
accent
#EC3C3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F177F

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

Preview Lab → · Contrast checker → · Palette generator →

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