#822A98#822A98

#822A98 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.181 H 318.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#822A98
RGBrgb(130, 42, 152)
HSLhsl(288, 57%, 38%)
HSVhsv(288, 72%, 60%)
CMYKcmyk(14.5%, 72.4%, 0%, 40.4%)
CIE-LABlab(35.34, 53.05, -42.41)
CIE-LCHlch(35.34, 67.92, 321.36°)
OKLaboklab(46.59% 0.1359 -0.119)
OKLCHoklch(46.59% 0.181 318.8)
XYZxyz(15.7006, 8.6695, 30.5460)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822A98 #40982A
analogous
#4B2A98 #822A98 #982A77
triadic
#822A98 #98822A #2A9882
tetradic
#822A98 #984B2A #40982A #2A7798
square
#822A98 #984B2A #40982A #2A7798
split-complementary
#822A98 #77982A #2A984B
monochromatic
#301038 #591D68 #822A98 #AB37C8 #BF67D5

Accessibility & contrast

On white

7.68
#822A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#822A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #822A98
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822A98#FFFFFF#000000##FFFFFF
##822A981.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#315695
Tritanopia (blue-blind)
#823F5E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #822a98;
/* rgb */ color: rgb(130, 42, 152);
/* oklch */ color: oklch(46.6% 0.181 318.8);
Tailwind
colors: {
  custom: {
    50: '#aa6cb7',
    500: '#822a98',
    950: '#000000',
  },
}
SCSS
$custom: #822a98;
$custom-light: #aa6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#822a98",
  "rgb": {
    "r": 130,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 288,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46588,
    "c": 0.18058,
    "h": 318.8
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#822A98
secondary
#74BB62
accent
#E04866
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #822A98

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

Preview Lab → · Contrast checker → · Palette generator →

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