#7F177E#7F177E

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

Color values

HEX#7F177E
RGBrgb(127, 23, 126)
HSLhsl(301, 69%, 29%)
HSVhsv(301, 82%, 50%)
CMYKcmyk(0%, 81.9%, 0.8%, 50.2%)
CIE-LABlab(30.95, 54.06, -33.37)
CIE-LCHlch(30.95, 63.53, 328.31°)
OKLaboklab(42.84% 0.1515 -0.0925)
OKLCHoklch(42.84% 0.177 328.6)
XYZxyz(12.8246, 6.6322, 20.3393)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F177E #177F18
analogous
#4C177F #7F177E #7F174A
triadic
#7F177E #7E7F17 #177E7F
tetradic
#7F177E #7F4C17 #177F18 #174A7F
square
#7F177E #7F4C17 #177F18 #174A7F
split-complementary
#7F177E #4A7F17 #177F4C
monochromatic
#1A051A #4B0E4B #7F177E #B320B1 #DB36D9

Accessibility & contrast

On white

9.03
#7F177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F177E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F177E#FFFFFF#000000##FFFFFF
##7F177E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#374D7C
Tritanopia (blue-blind)
#83294B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f177e;
/* rgb */ color: rgb(127, 23, 126);
/* oklch */ color: oklch(42.8% 0.177 328.6);
Tailwind
colors: {
  custom: {
    50: '#a863a4',
    500: '#7f177e',
    950: '#000000',
  },
}
SCSS
$custom: #7f177e;
$custom-light: #a863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f177e",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 300.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42842,
    "c": 0.17748,
    "h": 328.6
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#7F177E
secondary
#3EB43F
accent
#EC3D3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F177E

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

Preview Lab → · Contrast checker → · Palette generator →

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