#7B1789#7B1789

#7B1789 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.184 H 322.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7B1789
RGBrgb(123, 23, 137)
HSLhsl(293, 71%, 31%)
HSVhsv(293, 83%, 54%)
CMYKcmyk(10.2%, 83.2%, 0%, 46.3%)
CIE-LABlab(30.95, 55.17, -40.29)
CIE-LCHlch(30.95, 68.32, 323.86°)
OKLaboklab(42.93% 0.1459 -0.1129)
OKLCHoklch(42.93% 0.184 322.3)
XYZxyz(12.9897, 6.6307, 24.2577)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1789 #258917
analogous
#421789 #7B1789 #89175E
triadic
#7B1789 #897B17 #17897B
tetradic
#7B1789 #894217 #258917 #175E89
square
#7B1789 #894217 #258917 #175E89
split-complementary
#7B1789 #5E8917 #178942
monochromatic
#1D0520 #4C0E55 #7B1789 #AA20BD #CA3CDE

Accessibility & contrast

On white

9.03
#7B1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1789
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1789#FFFFFF#000000##FFFFFF
##7B17891.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#2A4C87
Tritanopia (blue-blind)
#7C3051
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1789;
/* rgb */ color: rgb(123, 23, 137);
/* oklch */ color: oklch(42.9% 0.184 322.3);
Tailwind
colors: {
  custom: {
    50: '#a563ac',
    500: '#7b1789',
    950: '#000000',
  },
}
SCSS
$custom: #7b1789;
$custom-light: #a563ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1789",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 292.632,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4293,
    "c": 0.18449,
    "h": 322.3
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#7B1789
secondary
#4FBD3F
accent
#EE3A50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1789

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

Preview Lab → · Contrast checker → · Palette generator →

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