#7B1886#7B1886

#7B1886 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.181 H 323.4°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7B1886
RGBrgb(123, 24, 134)
HSLhsl(294, 70%, 31%)
HSVhsv(294, 82%, 53%)
CMYKcmyk(8.2%, 82.1%, 0%, 47.5%)
CIE-LABlab(30.85, 54.35, -38.60)
CIE-LCHlch(30.85, 66.66, 324.62°)
OKLaboklab(42.79% 0.1455 -0.1079)
OKLCHoklch(42.79% 0.181 323.4)
XYZxyz(12.7977, 6.5863, 23.1468)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1886 #238618
analogous
#441886 #7B1886 #86185A
triadic
#7B1886 #867B18 #18867B
tetradic
#7B1886 #864418 #238618 #185A86
square
#7B1886 #864418 #238618 #185A86
split-complementary
#7B1886 #5A8618 #188644
monochromatic
#1C051E #4B0F52 #7B1886 #AB21BA #CC3CDC

Accessibility & contrast

On white

9.06
#7B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7B1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1886
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1886#FFFFFF#000000##FFFFFF
##7B18861.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#2D4C84
Tritanopia (blue-blind)
#7D2F50
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1886;
/* rgb */ color: rgb(123, 24, 134);
/* oklch */ color: oklch(42.8% 0.181 323.4);
Tailwind
colors: {
  custom: {
    50: '#a563aa',
    500: '#7b1886',
    950: '#000000',
  },
}
SCSS
$custom: #7b1886;
$custom-light: #a563aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1886",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 294,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42791,
    "c": 0.18117,
    "h": 323.4
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#7B1886
secondary
#4CBA40
accent
#EC3B4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1886

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

Preview Lab → · Contrast checker → · Palette generator →

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