#822798#822798

#822798 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.184 H 319.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#822798
RGBrgb(130, 39, 152)
HSLhsl(288, 59%, 37%)
HSVhsv(288, 74%, 60%)
CMYKcmyk(14.5%, 74.3%, 0%, 40.4%)
CIE-LABlab(34.93, 54.21, -43.06)
CIE-LCHlch(34.93, 69.23, 321.54°)
OKLaboklab(46.3% 0.1389 -0.1209)
OKLCHoklch(46.3% 0.184 319)
XYZxyz(15.5982, 8.4646, 30.5119)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822798 #3D9827
analogous
#4A2798 #822798 #982775
triadic
#822798 #988227 #279882
tetradic
#822798 #984A27 #3D9827 #277598
square
#822798 #984A27 #3D9827 #277598
split-complementary
#822798 #759827 #27984A
monochromatic
#2F0E37 #581B67 #822798 #AC33C9 #C063D7

Accessibility & contrast

On white

7.80
#822798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #822798
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822798#FFFFFF#000000##FFFFFF
##8227981.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#2F5595
Tritanopia (blue-blind)
#823E5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #822798;
/* rgb */ color: rgb(130, 39, 152);
/* oklch */ color: oklch(46.3% 0.184 319.0);
Tailwind
colors: {
  custom: {
    50: '#aa6bb7',
    500: '#822798',
    950: '#000000',
  },
}
SCSS
$custom: #822798;
$custom-light: #aa6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#822798",
  "rgb": {
    "r": 130,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 288.319,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46297,
    "c": 0.18412,
    "h": 319
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#822798
secondary
#71BC5E
accent
#E24564
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #822798

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

Preview Lab → · Contrast checker → · Palette generator →

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