#7B2282#7B2282

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

Color values

HEX#7B2282
RGBrgb(123, 34, 130)
HSLhsl(296, 59%, 32%)
HSVhsv(296, 74%, 51%)
CMYKcmyk(5.4%, 73.8%, 0%, 49%)
CIE-LABlab(31.73, 50.34, -34.68)
CIE-LCHlch(31.73, 61.13, 325.43°)
OKLaboklab(43.34% 0.1368 -0.0965)
OKLCHoklch(43.34% 0.167 324.8)
XYZxyz(12.7694, 6.9675, 21.7871)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2282 #298222
analogous
#4B2282 #7B2282 #822259
triadic
#7B2282 #827B22 #22827B
tetradic
#7B2282 #824B22 #298222 #225982
square
#7B2282 #824B22 #298222 #225982
split-complementary
#7B2282 #598222 #22824B
monochromatic
#1F0921 #4D1551 #7B2282 #A92FB3 #C74ED1

Accessibility & contrast

On white

8.77
#7B2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2282
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2282#FFFFFF#000000##FFFFFF
##7B22821.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044485
Deuteranopia (green-blind)
#354E80
Tritanopia (blue-blind)
#7E3250
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2282;
/* rgb */ color: rgb(123, 34, 130);
/* oklch */ color: oklch(43.3% 0.167 324.8);
Tailwind
colors: {
  custom: {
    50: '#a467a7',
    500: '#7b2282',
    950: '#000000',
  },
}
SCSS
$custom: #7b2282;
$custom-light: #a467a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2282",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 295.625,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4334,
    "c": 0.16744,
    "h": 324.8
  },
  "luminance": 0.06967
}

Semantic roles & 50–950 ramp

primary
#7B2282
secondary
#53B44C
accent
#E24651
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B2282

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

Preview Lab → · Contrast checker → · Palette generator →

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