#7B2387#7B2387

#7B2387 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.171 H 322.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7B2387
RGBrgb(123, 35, 135)
HSLhsl(293, 59%, 33%)
HSVhsv(293, 74%, 53%)
CMYKcmyk(8.9%, 74.1%, 0%, 47.1%)
CIE-LABlab(32.18, 50.90, -37.09)
CIE-LCHlch(32.18, 62.98, 323.92°)
OKLaboklab(43.76% 0.1356 -0.1036)
OKLCHoklch(43.76% 0.171 322.6)
XYZxyz(13.1421, 7.1630, 23.6074)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2387 #2F8723
analogous
#492387 #7B2387 #872361
triadic
#7B2387 #877B23 #23877B
tetradic
#7B2387 #874923 #2F8723 #236187
square
#7B2387 #874923 #2F8723 #236187
split-complementary
#7B2387 #618723 #238749
monochromatic
#220A26 #4F1656 #7B2387 #A730B8 #C352D2

Accessibility & contrast

On white

8.63
#7B2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7B2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2387
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2387#FFFFFF#000000##FFFFFF
##7B23871.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#7D3553
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b2387;
/* rgb */ color: rgb(123, 35, 135);
/* oklch */ color: oklch(43.8% 0.171 322.6);
Tailwind
colors: {
  custom: {
    50: '#a467aa',
    500: '#7b2387',
    950: '#000000',
  },
}
SCSS
$custom: #7b2387;
$custom-light: #a467aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2387",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 292.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43756,
    "c": 0.17061,
    "h": 322.6
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#7B2387
secondary
#5CB650
accent
#E24659
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2387

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

Preview Lab → · Contrast checker → · Palette generator →

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