#7B2181#7B2181

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

Color values

HEX#7B2181
RGBrgb(123, 33, 129)
HSLhsl(296, 59%, 32%)
HSVhsv(296, 74%, 51%)
CMYKcmyk(4.7%, 74.4%, 0%, 49.4%)
CIE-LABlab(31.54, 50.52, -34.36)
CIE-LCHlch(31.54, 61.10, 325.78°)
OKLaboklab(43.19% 0.1379 -0.0956)
OKLCHoklch(43.19% 0.168 325.3)
XYZxyz(12.6744, 6.8845, 21.4259)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2181 #278121
analogous
#4B2181 #7B2181 #812157
triadic
#7B2181 #817B21 #21817B
tetradic
#7B2181 #814B21 #278121 #215781
square
#7B2181 #814B21 #278121 #215781
split-complementary
#7B2181 #578121 #21814B
monochromatic
#1E0820 #4D1550 #7B2181 #A92DB2 #C94BD1

Accessibility & contrast

On white

8.84
#7B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2181
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2181#FFFFFF#000000##FFFFFF
##7B21811.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044384
Deuteranopia (green-blind)
#354E7F
Tritanopia (blue-blind)
#7E314F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b2181;
/* rgb */ color: rgb(123, 33, 129);
/* oklch */ color: oklch(43.2% 0.168 325.3);
Tailwind
colors: {
  custom: {
    50: '#a466a6',
    500: '#7b2181',
    950: '#000000',
  },
}
SCSS
$custom: #7b2181;
$custom-light: #a466a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2181",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 296.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43185,
    "c": 0.16775,
    "h": 325.3
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#7B2181
secondary
#51B44A
accent
#E2454F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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