#7B2487#7B2487

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

Color values

HEX#7B2487
RGBrgb(123, 36, 135)
HSLhsl(293, 58%, 34%)
HSVhsv(293, 73%, 53%)
CMYKcmyk(8.9%, 73.3%, 0%, 47.1%)
CIE-LABlab(32.31, 50.52, -36.88)
CIE-LCHlch(32.31, 62.55, 323.87°)
OKLaboklab(43.85% 0.1346 -0.103)
OKLCHoklch(43.85% 0.169 322.6)
XYZxyz(13.1720, 7.2227, 23.6173)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2487 #308724
analogous
#492487 #7B2487 #872461
triadic
#7B2487 #877B24 #24877B
tetradic
#7B2487 #874924 #308724 #246187
square
#7B2487 #874924 #308724 #246187
split-complementary
#7B2487 #618724 #248749
monochromatic
#230A26 #4F1757 #7B2487 #A731B7 #C254D1

Accessibility & contrast

On white

8.59
#7B2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2487
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2487#FFFFFF#000000##FFFFFF
##7B24871.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2487;
/* rgb */ color: rgb(123, 36, 135);
/* oklch */ color: oklch(43.9% 0.169 322.6);
Tailwind
colors: {
  custom: {
    50: '#a468aa',
    500: '#7b2487',
    950: '#000000',
  },
}
SCSS
$custom: #7b2487;
$custom-light: #a468aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2487",
  "rgb": {
    "r": 123,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 292.727,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43852,
    "c": 0.16942,
    "h": 322.6
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#7B2487
secondary
#5DB551
accent
#E14759
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2487

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

Preview Lab → · Contrast checker → · Palette generator →

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