#7B2281#7B2281

#7B2281 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.167 H 325.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7B2281
RGBrgb(123, 34, 129)
HSLhsl(296, 58%, 32%)
HSVhsv(296, 74%, 51%)
CMYKcmyk(4.7%, 73.6%, 0%, 49.4%)
CIE-LABlab(31.67, 50.15, -34.15)
CIE-LCHlch(31.67, 60.68, 325.75°)
OKLaboklab(43.28% 0.1368 -0.095)
OKLCHoklch(43.28% 0.167 325.2)
XYZxyz(12.7026, 6.9408, 21.4353)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2281 #288122
analogous
#4C2281 #7B2281 #812257
triadic
#7B2281 #817B22 #22817B
tetradic
#7B2281 #814C22 #288122 #225781
square
#7B2281 #814C22 #288122 #225781
split-complementary
#7B2281 #578122 #22814C
monochromatic
#1F0820 #4D1551 #7B2281 #A92FB1 #C84DD0

Accessibility & contrast

On white

8.79
#7B2281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B2281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2281
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2281#FFFFFF#000000##FFFFFF
##7B22811.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074484
Deuteranopia (green-blind)
#364E7F
Tritanopia (blue-blind)
#7E324F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b2281;
/* rgb */ color: rgb(123, 34, 129);
/* oklch */ color: oklch(43.3% 0.167 325.2);
Tailwind
colors: {
  custom: {
    50: '#a467a6',
    500: '#7b2281',
    950: '#000000',
  },
}
SCSS
$custom: #7b2281;
$custom-light: #a467a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2281",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 296.211,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43277,
    "c": 0.16658,
    "h": 325.2
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#7B2281
secondary
#52B34B
accent
#E14650
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B2281

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

Preview Lab → · Contrast checker → · Palette generator →

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