#7B1986#7B1986

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

Color values

HEX#7B1986
RGBrgb(123, 25, 134)
HSLhsl(294, 69%, 31%)
HSVhsv(294, 81%, 53%)
CMYKcmyk(8.2%, 81.3%, 0%, 47.5%)
CIE-LABlab(30.95, 54.06, -38.44)
CIE-LCHlch(30.95, 66.33, 324.59°)
OKLaboklab(42.86% 0.1448 -0.1074)
OKLCHoklch(42.86% 0.18 323.4)
XYZxyz(12.8187, 6.6282, 23.1538)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1986 #248619
analogous
#441986 #7B1986 #86195A
triadic
#7B1986 #867B19 #19867B
tetradic
#7B1986 #864419 #248619 #195A86
square
#7B1986 #864419 #248619 #195A86
split-complementary
#7B1986 #5A8619 #198644
monochromatic
#1C061F #4C0F52 #7B1986 #AA23BA #CB3EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B1986#FFFFFF#000000##FFFFFF
##7B19861.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)
#004289
Deuteranopia (green-blind)
#2D4D84
Tritanopia (blue-blind)
#7D2F50
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1986;
/* rgb */ color: rgb(123, 25, 134);
/* oklch */ color: oklch(42.9% 0.180 323.4);
Tailwind
colors: {
  custom: {
    50: '#a563aa',
    500: '#7b1986',
    950: '#000000',
  },
}
SCSS
$custom: #7b1986;
$custom-light: #a563aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1986",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 293.945,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.18027,
    "h": 323.4
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#7B1986
secondary
#4DBA41
accent
#EB3C4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1986

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

Preview Lab → · Contrast checker → · Palette generator →

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