#822398#822398

#822398 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.189 H 319.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#822398
RGBrgb(130, 35, 152)
HSLhsl(289, 63%, 37%)
HSVhsv(289, 77%, 60%)
CMYKcmyk(14.5%, 77%, 0%, 40.4%)
CIE-LABlab(34.43, 55.65, -43.87)
CIE-LCHlch(34.43, 70.87, 321.75°)
OKLaboklab(45.94% 0.1427 -0.1232)
OKLCHoklch(45.94% 0.189 319.2)
XYZxyz(15.4737, 8.2157, 30.4704)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822398 #399823
analogous
#482398 #822398 #982374
triadic
#822398 #988223 #239882
tetradic
#822398 #984823 #399823 #237498
square
#822398 #984823 #399823 #237498
split-complementary
#822398 #749823 #239848
monochromatic
#2D0C35 #571866 #822398 #AD2ECA #C25CD9

Accessibility & contrast

On white

7.95
#822398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#822398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #822398
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822398#FFFFFF#000000##FFFFFF
##8223981.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#823C5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #822398;
/* rgb */ color: rgb(130, 35, 152);
/* oklch */ color: oklch(45.9% 0.189 319.2);
Tailwind
colors: {
  custom: {
    50: '#aa69b7',
    500: '#822398',
    950: '#000000',
  },
}
SCSS
$custom: #822398;
$custom-light: #aa69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#822398",
  "rgb": {
    "r": 130,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 288.718,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45939,
    "c": 0.18852,
    "h": 319.2
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#822398
secondary
#6CBE59
accent
#E64261
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #822398

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

Preview Lab → · Contrast checker → · Palette generator →

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