#7B2A7D#7B2A7D

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

Color values

HEX#7B2A7D
RGBrgb(123, 42, 125)
HSLhsl(299, 50%, 33%)
HSVhsv(299, 66%, 49%)
CMYKcmyk(1.6%, 66.4%, 0%, 51%)
CIE-LABlab(32.59, 46.18, -30.20)
CIE-LCHlch(32.59, 55.17, 326.82°)
OKLaboklab(43.86% 0.1277 -0.0836)
OKLCHoklch(43.86% 0.153 326.8)
XYZxyz(12.6978, 7.3484, 20.1476)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A7D #2C7D2A
analogous
#512A7D #7B2A7D #7D2A56
triadic
#7B2A7D #7D7B2A #2A7D7B
tetradic
#7B2A7D #7D512A #2C7D2A #2A567D
square
#7B2A7D #7D512A #2C7D2A #2A567D
split-complementary
#7B2A7D #567D2A #2A7D51
monochromatic
#210B21 #4E1B4F #7B2A7D #A839AB #C55AC8

Accessibility & contrast

On white

8.50
#7B2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A7D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A7D#FFFFFF#000000##FFFFFF
##7B2A7D1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#3D507B
Tritanopia (blue-blind)
#7E3650
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2a7d;
/* rgb */ color: rgb(123, 42, 125);
/* oklch */ color: oklch(43.9% 0.153 326.8);
Tailwind
colors: {
  custom: {
    50: '#a46aa3',
    500: '#7b2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a7d;
$custom-light: #a46aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a7d",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 298.554,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4386,
    "c": 0.15264,
    "h": 326.8
  },
  "luminance": 0.07348
}

Semantic roles & 50–950 ramp

primary
#7B2A7D
secondary
#58AD56
accent
#D94F52
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7B2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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