#822F9D#822F9D

#822F9D is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.179 H 316.6°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#822F9D
RGBrgb(130, 47, 157)
HSLhsl(285, 54%, 40%)
HSVhsv(285, 70%, 62%)
CMYKcmyk(17.2%, 70.1%, 0%, 38.4%)
CIE-LABlab(36.39, 52.00, -43.75)
CIE-LCHlch(36.39, 67.96, 319.92°)
OKLaboklab(47.44% 0.1301 -0.1229)
OKLCHoklch(47.44% 0.179 316.6)
XYZxyz(16.3073, 9.2138, 32.8112)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822F9D #4A9D2F
analogous
#4B2F9D #822F9D #9D2F81
triadic
#822F9D #9D822F #2F9D82
tetradic
#822F9D #9D4B2F #4A9D2F #2F819D
square
#822F9D #9D4B2F #4A9D2F #2F819D
split-complementary
#822F9D #819D2F #2F9D4B
monochromatic
#34133F #5B216E #822F9D #A643C7 #BC72D5

Accessibility & contrast

On white

7.39
#822F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#822F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #822F9D
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822F9D#FFFFFF#000000##FFFFFF
##822F9D1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#30589A
Tritanopia (blue-blind)
#814562
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #822f9d;
/* rgb */ color: rgb(130, 47, 157);
/* oklch */ color: oklch(47.4% 0.179 316.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fba',
    500: '#822f9d',
    950: '#000000',
  },
}
SCSS
$custom: #822f9d;
$custom-light: #aa6fba;
$custom-dark: #000000;
JSON
{
  "hex": "#822f9d",
  "rgb": {
    "r": 130,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 285.273,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.47443,
    "c": 0.17901,
    "h": 316.6
  },
  "luminance": 0.09213
}

Semantic roles & 50–950 ramp

primary
#822F9D
secondary
#7FBC6B
accent
#DD4B6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #822F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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