#7B1172#7B1172

#7B1172 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.1% C 0.171 H 332.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#7B1172
RGBrgb(123, 17, 114)
HSLhsl(305, 76%, 27%)
HSVhsv(305, 86%, 48%)
CMYKcmyk(0%, 86.2%, 7.3%, 51.8%)
CIE-LABlab(28.97, 52.77, -28.96)
CIE-LCHlch(28.97, 60.20, 331.24°)
OKLaboklab(41.06% 0.1518 -0.0798)
OKLCHoklch(41.06% 0.171 332.3)
XYZxyz(11.4061, 5.8278, 16.4405)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1172 #117B1A
analogous
#4F117B #7B1172 #7B113D
triadic
#7B1172 #727B11 #11727B
tetradic
#7B1172 #7B4F11 #117B1A #113D7B
square
#7B1172 #7B4F11 #117B1A #113D7B
split-complementary
#7B1172 #3D7B11 #117B4F
monochromatic
#1B0419 #450A40 #7B1172 #B118A4 #E125D1

Accessibility & contrast

On white

9.70
#7B1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7B1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1172
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1172#FFFFFF#000000##FFFFFF
##7B11721.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053B74
Deuteranopia (green-blind)
#384970
Tritanopia (blue-blind)
#812043
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b1172;
/* rgb */ color: rgb(123, 17, 114);
/* oklch */ color: oklch(41.1% 0.171 332.3);
Tailwind
colors: {
  custom: {
    50: '#a5609b',
    500: '#7b1172',
    950: '#000000',
  },
}
SCSS
$custom: #7b1172;
$custom-light: #a5609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1172",
  "rgb": {
    "r": 123,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 305.094,
    "s": 75.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.41063,
    "c": 0.17147,
    "h": 332.3
  },
  "luminance": 0.05827
}

Semantic roles & 50–950 ramp

primary
#7B1172
secondary
#36B141
accent
#F24635
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7B1172

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

Preview Lab → · Contrast checker → · Palette generator →

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