#7B2182#7B2182

#7B2182 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.169 H 324.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7B2182
RGBrgb(123, 33, 130)
HSLhsl(296, 60%, 32%)
HSVhsv(296, 75%, 51%)
CMYKcmyk(5.4%, 74.6%, 0%, 49%)
CIE-LABlab(31.60, 50.71, -34.89)
CIE-LCHlch(31.60, 61.55, 325.47°)
OKLaboklab(43.25% 0.1378 -0.0971)
OKLCHoklch(43.25% 0.169 324.8)
XYZxyz(12.7412, 6.9112, 21.7777)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2182 #288221
analogous
#4B2182 #7B2182 #822159
triadic
#7B2182 #827B21 #21827B
tetradic
#7B2182 #824B21 #288221 #215982
square
#7B2182 #824B21 #288221 #215982
split-complementary
#7B2182 #598221 #21824B
monochromatic
#1F0820 #4D1551 #7B2182 #A92DB3 #C84CD2

Accessibility & contrast

On white

8.82
#7B2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7B2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2182
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2182#FFFFFF#000000##FFFFFF
##7B21821.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014385
Deuteranopia (green-blind)
#344E80
Tritanopia (blue-blind)
#7E3250
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b2182;
/* rgb */ color: rgb(123, 33, 130);
/* oklch */ color: oklch(43.2% 0.169 324.8);
Tailwind
colors: {
  custom: {
    50: '#a466a7',
    500: '#7b2182',
    950: '#000000',
  },
}
SCSS
$custom: #7b2182;
$custom-light: #a466a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2182",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 295.67,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43248,
    "c": 0.16861,
    "h": 324.8
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#7B2182
secondary
#52B44A
accent
#E34550
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B2182

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

Preview Lab → · Contrast checker → · Palette generator →

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