#7B176E#7B176E

#7B176E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.163 H 334.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7B176E
RGBrgb(123, 23, 110)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 48%)
CMYKcmyk(0%, 81.3%, 10.6%, 51.8%)
CIE-LABlab(29.29, 50.58, -25.90)
CIE-LCHlch(29.29, 56.82, 332.88°)
OKLaboklab(41.21% 0.1471 -0.071)
OKLCHoklch(41.21% 0.163 334.2)
XYZxyz(11.2894, 5.9505, 15.3028)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B176E #177B24
analogous
#56177B #7B176E #7B173C
triadic
#7B176E #6E7B17 #176E7B
tetradic
#7B176E #7B5617 #177B24 #173C7B
square
#7B176E #7B5617 #177B24 #173C7B
split-complementary
#7B176E #3C7B17 #177B56
monochromatic
#1A0517 #470D40 #7B176E #AF219C #D933C3

Accessibility & contrast

On white

9.59
#7B176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7B176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B176E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B176E#FFFFFF#000000##FFFFFF
##7B176E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C70
Deuteranopia (green-blind)
#3C4A6C
Tritanopia (blue-blind)
#812142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b176e;
/* rgb */ color: rgb(123, 23, 110);
/* oklch */ color: oklch(41.2% 0.163 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7b176e',
    950: '#000000',
  },
}
SCSS
$custom: #7b176e;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7b176e",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 307.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41214,
    "c": 0.16333,
    "h": 334.2
  },
  "luminance": 0.0595
}

Semantic roles & 50–950 ramp

primary
#7B176E
secondary
#3EB04D
accent
#EB533C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B176E

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

Preview Lab → · Contrast checker → · Palette generator →

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