#822797#822797

#822797 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.183 H 319.3°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#822797
RGBrgb(130, 39, 151)
HSLhsl(289, 59%, 37%)
HSVhsv(289, 74%, 59%)
CMYKcmyk(13.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(34.87, 54.01, -42.56)
CIE-LCHlch(34.87, 68.77, 321.76°)
OKLaboklab(46.23% 0.139 -0.1194)
OKLCHoklch(46.23% 0.183 319.3)
XYZxyz(15.5166, 8.4320, 30.0824)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822797 #3C9727
analogous
#4A2797 #822797 #972774
triadic
#822797 #978227 #279782
tetradic
#822797 #974A27 #3C9727 #277497
square
#822797 #974A27 #3C9727 #277497
split-complementary
#822797 #749727 #27974A
monochromatic
#2E0E36 #581A66 #822797 #AC34C8 #C162D6

Accessibility & contrast

On white

7.82
#822797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#822797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #822797
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822797#FFFFFF#000000##FFFFFF
##8227971.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2F5594
Tritanopia (blue-blind)
#823D5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #822797;
/* rgb */ color: rgb(130, 39, 151);
/* oklch */ color: oklch(46.2% 0.183 319.3);
Tailwind
colors: {
  custom: {
    50: '#aa6bb6',
    500: '#822797',
    950: '#000000',
  },
}
SCSS
$custom: #822797;
$custom-light: #aa6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#822797",
  "rgb": {
    "r": 130,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 288.75,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4623,
    "c": 0.18323,
    "h": 319.3
  },
  "luminance": 0.08431
}

Semantic roles & 50–950 ramp

primary
#822797
secondary
#6FBC5E
accent
#E24663
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #822797

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

Preview Lab → · Contrast checker → · Palette generator →

#822797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva