#7B2586#7B2586

#7B2586 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.167 H 323.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7B2586
RGBrgb(123, 37, 134)
HSLhsl(293, 57%, 34%)
HSVhsv(293, 72%, 53%)
CMYKcmyk(8.2%, 72.4%, 0%, 47.5%)
CIE-LABlab(32.38, 49.94, -36.14)
CIE-LCHlch(32.38, 61.64, 324.11°)
OKLaboklab(43.89% 0.1335 -0.1008)
OKLCHoklch(43.89% 0.167 323)
XYZxyz(13.1326, 7.2561, 23.2585)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2586 #308625
analogous
#4A2586 #7B2586 #862560
triadic
#7B2586 #867B25 #25867B
tetradic
#7B2586 #864A25 #308625 #256086
square
#7B2586 #864A25 #308625 #256086
split-complementary
#7B2586 #608625 #25864A
monochromatic
#230B26 #4F1856 #7B2586 #A732B6 #C255D0

Accessibility & contrast

On white

8.57
#7B2586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7B2586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2586
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2586#FFFFFF#000000##FFFFFF
##7B25861.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034689
Deuteranopia (green-blind)
#345084
Tritanopia (blue-blind)
#7D3653
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b2586;
/* rgb */ color: rgb(123, 37, 134);
/* oklch */ color: oklch(43.9% 0.167 323.0);
Tailwind
colors: {
  custom: {
    50: '#a468aa',
    500: '#7b2586',
    950: '#000000',
  },
}
SCSS
$custom: #7b2586;
$custom-light: #a468aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2586",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 293.196,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43885,
    "c": 0.1673,
    "h": 323
  },
  "luminance": 0.07255
}

Semantic roles & 50–950 ramp

primary
#7B2586
secondary
#5DB452
accent
#E04859
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2586

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

Preview Lab → · Contrast checker → · Palette generator →

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