#7B3586#7B3586

#7B3586 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.7% C 0.145 H 322.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7B3586
RGBrgb(123, 53, 134)
HSLhsl(292, 43%, 37%)
HSVhsv(292, 60%, 53%)
CMYKcmyk(8.2%, 60.4%, 0%, 47.5%)
CIE-LABlab(34.96, 42.78, -32.04)
CIE-LCHlch(34.96, 53.45, 323.17°)
OKLaboklab(45.75% 0.114 -0.089)
OKLCHoklch(45.75% 0.145 322)
XYZxyz(13.7441, 8.4791, 23.4623)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3586 #408635
analogous
#533586 #7B3586 #863569
triadic
#7B3586 #867B35 #35867B
tetradic
#7B3586 #865335 #408635 #356986
square
#7B3586 #865335 #408635 #356986
split-complementary
#7B3586 #698635 #358653
monochromatic
#2A122E #53245A #7B3586 #A346B2 #BA6FC6

Accessibility & contrast

On white

7.79
#7B3586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7B3586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B3586
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3586#FFFFFF#000000##FFFFFF
##7B35861.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D89
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#7D4158
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b3586;
/* rgb */ color: rgb(123, 53, 134);
/* oklch */ color: oklch(45.7% 0.145 322.0);
Tailwind
colors: {
  custom: {
    50: '#a371a9',
    500: '#7b3586',
    950: '#000000',
  },
}
SCSS
$custom: #7b3586;
$custom-light: #a371a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3586",
  "rgb": {
    "r": 123,
    "g": 53,
    "b": 134
  },
  "hsl": {
    "h": 291.852,
    "s": 43.316,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45748,
    "c": 0.14466,
    "h": 322
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#7B3586
secondary
#72AE68
accent
#D35566
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7B3586

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

Preview Lab → · Contrast checker → · Palette generator →

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