#7B177E#7B177E

#7B177E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.176 H 326.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7B177E
RGBrgb(123, 23, 126)
HSLhsl(298, 69%, 29%)
HSVhsv(298, 82%, 49%)
CMYKcmyk(2.4%, 81.7%, 0%, 50.6%)
CIE-LABlab(30.23, 53.22, -34.57)
CIE-LCHlch(30.23, 63.46, 327.00°)
OKLaboklab(42.19% 0.147 -0.0961)
OKLCHoklch(42.19% 0.176 326.8)
XYZxyz(12.2405, 6.3310, 20.3119)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B177E #1A7E17
analogous
#48177E #7B177E #7E174E
triadic
#7B177E #7E7B17 #177E7B
tetradic
#7B177E #7E4817 #1A7E17 #174E7E
square
#7B177E #7E4817 #1A7E17 #174E7E
split-complementary
#7B177E #4E7E17 #177E48
monochromatic
#19051A #480E4A #7B177E #AE20B2 #D535DA

Accessibility & contrast

On white

9.27
#7B177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B177E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B177E#FFFFFF#000000##FFFFFF
##7B177E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#334B7C
Tritanopia (blue-blind)
#7F2A4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b177e;
/* rgb */ color: rgb(123, 23, 126);
/* oklch */ color: oklch(42.2% 0.176 326.8);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7b177e',
    950: '#000000',
  },
}
SCSS
$custom: #7b177e;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b177e",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 298.252,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42192,
    "c": 0.17563,
    "h": 326.8
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#7B177E
secondary
#42B33E
accent
#EC3C41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B177E

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

Preview Lab → · Contrast checker → · Palette generator →

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