#82227B#82227B

#82227B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.165 H 331.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#82227B
RGBrgb(130, 34, 123)
HSLhsl(304, 59%, 32%)
HSVhsv(304, 74%, 51%)
CMYKcmyk(0%, 73.8%, 5.4%, 49%)
CIE-LABlab(32.53, 50.76, -28.96)
CIE-LCHlch(32.53, 58.44, 330.29°)
OKLaboklab(44.01% 0.1448 -0.0797)
OKLCHoklch(44.01% 0.165 331.2)
XYZxyz(13.3531, 7.3210, 19.4449)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#82227B #228229
analogous
#592282 #82227B #82224B
triadic
#82227B #7B8222 #227B82
tetradic
#82227B #825922 #228229 #224B82
square
#82227B #825922 #228229 #224B82
split-complementary
#82227B #4B8222 #228259
monochromatic
#21091F #51154D #82227B #B32FA9 #D14EC7

Accessibility & contrast

On white

8.52
#82227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#82227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #82227B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##82227B#FFFFFF#000000##FFFFFF
##82227B1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#405179
Tritanopia (blue-blind)
#872D4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #82227b;
/* rgb */ color: rgb(130, 34, 123);
/* oklch */ color: oklch(44.0% 0.165 331.2);
Tailwind
colors: {
  custom: {
    50: '#aa67a1',
    500: '#82227b',
    950: '#000000',
  },
}
SCSS
$custom: #82227b;
$custom-light: #aa67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#82227b",
  "rgb": {
    "r": 130,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 304.375,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44011,
    "c": 0.16529,
    "h": 331.2
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#82227B
secondary
#4CB453
accent
#E25146
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #82227B

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

Preview Lab → · Contrast checker → · Palette generator →

#82227B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva