#7B177F#7B177F

#7B177F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.176 H 326.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7B177F
RGBrgb(123, 23, 127)
HSLhsl(298, 69%, 29%)
HSVhsv(298, 82%, 50%)
CMYKcmyk(3.1%, 81.9%, 0%, 50.2%)
CIE-LABlab(30.30, 53.39, -35.09)
CIE-LCHlch(30.30, 63.89, 326.68°)
OKLaboklab(42.26% 0.1469 -0.0977)
OKLCHoklch(42.26% 0.176 326.4)
XYZxyz(12.3053, 6.3569, 20.6534)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B177F #1B7F17
analogous
#47177F #7B177F #7F174F
triadic
#7B177F #7F7B17 #177F7B
tetradic
#7B177F #7F4717 #1B7F17 #174F7F
square
#7B177F #7F4717 #1B7F17 #174F7F
split-complementary
#7B177F #4F7F17 #177F47
monochromatic
#19051A #490E4B #7B177F #AD20B3 #D436DB

Accessibility & contrast

On white

9.25
#7B177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7B177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B177F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B177F#FFFFFF#000000##FFFFFF
##7B177F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#324B7D
Tritanopia (blue-blind)
#7E2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b177f;
/* rgb */ color: rgb(123, 23, 127);
/* oklch */ color: oklch(42.3% 0.176 326.4);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7b177f',
    950: '#000000',
  },
}
SCSS
$custom: #7b177f;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b177f",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 297.692,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42257,
    "c": 0.17643,
    "h": 326.4
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#7B177F
secondary
#43B43E
accent
#EC3C42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B177F

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

Preview Lab → · Contrast checker → · Palette generator →

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