#7B1772#7B1772

#7B1772 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.166 H 332.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7B1772
RGBrgb(123, 23, 114)
HSLhsl(305, 68%, 29%)
HSVhsv(305, 81%, 48%)
CMYKcmyk(0%, 81.3%, 7.3%, 51.8%)
CIE-LABlab(29.51, 51.21, -28.11)
CIE-LCHlch(29.51, 58.42, 331.24°)
OKLaboklab(41.45% 0.1472 -0.0774)
OKLCHoklch(41.45% 0.166 332.3)
XYZxyz(11.5121, 6.0396, 16.4758)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1772 #177B20
analogous
#52177B #7B1772 #7B1740
triadic
#7B1772 #727B17 #17727B
tetradic
#7B1772 #7B5217 #177B20 #17407B
square
#7B1772 #7B5217 #177B20 #17407B
split-complementary
#7B1772 #407B17 #177B52
monochromatic
#1A0518 #470D42 #7B1772 #AF21A2 #D933CA

Accessibility & contrast

On white

9.51
#7B1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7B1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1772
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1772#FFFFFF#000000##FFFFFF
##7B17721.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#3A4A70
Tritanopia (blue-blind)
#812444
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1772;
/* rgb */ color: rgb(123, 23, 114);
/* oklch */ color: oklch(41.4% 0.166 332.3);
Tailwind
colors: {
  custom: {
    50: '#a5629b',
    500: '#7b1772',
    950: '#000000',
  },
}
SCSS
$custom: #7b1772;
$custom-light: #a5629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1772",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 305.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41447,
    "c": 0.16632,
    "h": 332.3
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#7B1772
secondary
#3EB048
accent
#EB4C3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1772

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

Preview Lab → · Contrast checker → · Palette generator →

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