#7B2587#7B2587

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

Color values

HEX#7B2587
RGBrgb(123, 37, 135)
HSLhsl(293, 57%, 34%)
HSVhsv(293, 73%, 53%)
CMYKcmyk(8.9%, 72.6%, 0%, 47.1%)
CIE-LABlab(32.45, 50.13, -36.66)
CIE-LCHlch(32.45, 62.11, 323.82°)
OKLaboklab(43.95% 0.1335 -0.1023)
OKLCHoklch(43.95% 0.168 322.5)
XYZxyz(13.2027, 7.2841, 23.6275)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2587 #318725
analogous
#4A2587 #7B2587 #872562
triadic
#7B2587 #877B25 #25877B
tetradic
#7B2587 #874A25 #318725 #256287
square
#7B2587 #874A25 #318725 #256287
split-complementary
#7B2587 #628725 #25874A
monochromatic
#230B27 #4F1857 #7B2587 #A732B7 #C256D1

Accessibility & contrast

On white

8.55
#7B2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2587
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2587#FFFFFF#000000##FFFFFF
##7B25871.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#335085
Tritanopia (blue-blind)
#7D3653
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b2587;
/* rgb */ color: rgb(123, 37, 135);
/* oklch */ color: oklch(43.9% 0.168 322.5);
Tailwind
colors: {
  custom: {
    50: '#a468aa',
    500: '#7b2587',
    950: '#000000',
  },
}
SCSS
$custom: #7b2587;
$custom-light: #a468aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2587",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 292.653,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43949,
    "c": 0.16821,
    "h": 322.5
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#7B2587
secondary
#5FB553
accent
#E0485A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2587

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

Preview Lab → · Contrast checker → · Palette generator →

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