#7B1780#7B1780

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

Color values

HEX#7B1780
RGBrgb(123, 23, 128)
HSLhsl(297, 70%, 30%)
HSVhsv(297, 82%, 50%)
CMYKcmyk(3.9%, 82%, 0%, 49.8%)
CIE-LABlab(30.36, 53.57, -35.62)
CIE-LCHlch(30.36, 64.33, 326.38°)
OKLaboklab(42.32% 0.1469 -0.0992)
OKLCHoklch(42.32% 0.177 326)
XYZxyz(12.3708, 6.3831, 20.9984)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1780 #1C8017
analogous
#471780 #7B1780 #801751
triadic
#7B1780 #807B17 #17807B
tetradic
#7B1780 #804717 #1C8017 #175180
square
#7B1780 #804717 #1C8017 #175180
split-complementary
#7B1780 #518017 #178047
monochromatic
#19051A #490E4C #7B1780 #AD20B4 #D336DB

Accessibility & contrast

On white

9.23
#7B1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1780
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1780#FFFFFF#000000##FFFFFF
##7B17801.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#314C7E
Tritanopia (blue-blind)
#7E2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1780;
/* rgb */ color: rgb(123, 23, 128);
/* oklch */ color: oklch(42.3% 0.177 326.0);
Tailwind
colors: {
  custom: {
    50: '#a562a5',
    500: '#7b1780',
    950: '#000000',
  },
}
SCSS
$custom: #7b1780;
$custom-light: #a562a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1780",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 297.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42322,
    "c": 0.17722,
    "h": 326
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#7B1780
secondary
#44B43E
accent
#EC3B44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1780

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

Preview Lab → · Contrast checker → · Palette generator →

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