#7B2A82#7B2A82

#7B2A82 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.157 H 324.5°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7B2A82
RGBrgb(123, 42, 130)
HSLhsl(295, 51%, 34%)
HSVhsv(295, 68%, 51%)
CMYKcmyk(5.4%, 67.7%, 0%, 49%)
CIE-LABlab(32.87, 47.12, -32.87)
CIE-LCHlch(32.87, 57.45, 325.10°)
OKLaboklab(44.16% 0.1279 -0.0913)
OKLCHoklch(44.16% 0.157 324.5)
XYZxyz(13.0253, 7.4794, 21.8724)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A82 #31822A
analogous
#4F2A82 #7B2A82 #822A5D
triadic
#7B2A82 #827B2A #2A827B
tetradic
#7B2A82 #824F2A #31822A #2A5D82
square
#7B2A82 #824F2A #31822A #2A5D82
split-complementary
#7B2A82 #5D822A #2A824F
monochromatic
#230C25 #4F1B54 #7B2A82 #A739B0 #C25CCA

Accessibility & contrast

On white

8.41
#7B2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7B2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A82
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A82#FFFFFF#000000##FFFFFF
##7B2A821.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174785
Deuteranopia (green-blind)
#3A5180
Tritanopia (blue-blind)
#7E3852
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2a82;
/* rgb */ color: rgb(123, 42, 130);
/* oklch */ color: oklch(44.2% 0.157 324.5);
Tailwind
colors: {
  custom: {
    50: '#a46aa7',
    500: '#7b2a82',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a82;
$custom-light: #a46aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a82",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 295.227,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4416,
    "c": 0.15716,
    "h": 324.5
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#7B2A82
secondary
#5FB058
accent
#DB4D58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7B2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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