#7F177B#7F177B

#7F177B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.175 H 329.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7F177B
RGBrgb(127, 23, 123)
HSLhsl(302, 69%, 29%)
HSVhsv(302, 82%, 50%)
CMYKcmyk(0%, 81.9%, 3.1%, 50.2%)
CIE-LABlab(30.77, 53.56, -31.77)
CIE-LCHlch(30.77, 62.28, 329.33°)
OKLaboklab(42.66% 0.1515 -0.0879)
OKLCHoklch(42.66% 0.175 329.9)
XYZxyz(12.6339, 6.5559, 19.3351)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F177B #177F1B
analogous
#4F177F #7F177B #7F1747
triadic
#7F177B #7B7F17 #177B7F
tetradic
#7F177B #7F4F17 #177F1B #17477F
square
#7F177B #7F4F17 #177F1B #17477F
split-complementary
#7F177B #477F17 #177F4F
monochromatic
#1A0519 #4B0E49 #7F177B #B320AD #DB36D4

Accessibility & contrast

On white

9.09
#7F177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F177B
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F177B#FFFFFF#000000##FFFFFF
##7F177B1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#842749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f177b;
/* rgb */ color: rgb(127, 23, 123);
/* oklch */ color: oklch(42.7% 0.175 329.9);
Tailwind
colors: {
  custom: {
    50: '#a863a1',
    500: '#7f177b',
    950: '#000000',
  },
}
SCSS
$custom: #7f177b;
$custom-light: #a863a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f177b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 302.308,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.17518,
    "h": 329.9
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#7F177B
secondary
#3EB443
accent
#EC423C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F177B

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

Preview Lab → · Contrast checker → · Palette generator →

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