#7B2A87#7B2A87

#7B2A87 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.162 H 322.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7B2A87
RGBrgb(123, 42, 135)
HSLhsl(292, 53%, 35%)
HSVhsv(292, 69%, 53%)
CMYKcmyk(8.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(33.17, 48.08, -35.50)
CIE-LCHlch(33.17, 59.77, 323.56°)
OKLaboklab(44.47% 0.1279 -0.099)
OKLCHoklch(44.47% 0.162 322.3)
XYZxyz(13.3691, 7.6169, 23.6830)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A87 #36872A
analogous
#4D2A87 #7B2A87 #872A65
triadic
#7B2A87 #877B2A #2A877B
tetradic
#7B2A87 #874D2A #36872A #2A6587
square
#7B2A87 #874D2A #36872A #2A6587
split-complementary
#7B2A87 #65872A #2A874D
monochromatic
#260D2A #501B58 #7B2A87 #A639B6 #BF5ECD

Accessibility & contrast

On white

8.32
#7B2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A87
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A87#FFFFFF#000000##FFFFFF
##7B2A871.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#7D3A55
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2a87;
/* rgb */ color: rgb(123, 42, 135);
/* oklch */ color: oklch(44.5% 0.162 322.3);
Tailwind
colors: {
  custom: {
    50: '#a46baa',
    500: '#7b2a87',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a87;
$custom-light: #a46baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a87",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 292.258,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44471,
    "c": 0.16176,
    "h": 322.3
  },
  "luminance": 0.07616
}

Semantic roles & 50–950 ramp

primary
#7B2A87
secondary
#65B35A
accent
#DC4C5E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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