#822DAB#822DAB

#822DAB is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.195 H 312.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#822DAB
RGBrgb(130, 45, 171)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 74%, 67%)
CMYKcmyk(24%, 73.7%, 0%, 32.9%)
CIE-LABlab(37.05, 55.76, -51.11)
CIE-LCHlch(37.05, 75.64, 317.49°)
OKLaboklab(48.21% 0.1307 -0.1445)
OKLCHoklch(48.21% 0.195 312.1)
XYZxyz(17.4936, 9.5634, 39.4446)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822DAB #56AB2D
analogous
#432DAB #822DAB #AB2D95
triadic
#822DAB #AB822D #2DAB82
tetradic
#822DAB #AB432D #56AB2D #2D95AB
square
#822DAB #AB432D #56AB2D #2D95AB
split-complementary
#822DAB #95AB2D #2DAB43
monochromatic
#38144A #5D207B #822DAB #A247CE #BB77DB

Accessibility & contrast

On white

7.21
#822DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#822DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #822DAB
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822DAB#FFFFFF#000000##FFFFFF
##822DAB1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1C59A8
Tritanopia (blue-blind)
#7D496A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #822dab;
/* rgb */ color: rgb(130, 45, 171);
/* oklch */ color: oklch(48.2% 0.195 312.1);
Tailwind
colors: {
  custom: {
    50: '#ab6ec5',
    500: '#822dab',
    950: '#000000',
  },
}
SCSS
$custom: #822dab;
$custom-light: #ab6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#822dab",
  "rgb": {
    "r": 130,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 280.476,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48211,
    "c": 0.19483,
    "h": 312.1
  },
  "luminance": 0.09563
}

Semantic roles & 50–950 ramp

primary
#822DAB
secondary
#8BC371
accent
#E24679
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #822DAB

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

Preview Lab → · Contrast checker → · Palette generator →

#822DAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva