#8A22B4#8A22B4

#8A22B4 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 49.0% C 0.217 H 313.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A22B4
RGBrgb(138, 34, 180)
HSLhsl(283, 68%, 42%)
HSVhsv(283, 81%, 71%)
CMYKcmyk(23.3%, 81.1%, 0%, 29.4%)
CIE-LABlab(37.56, 62.97, -55.58)
CIE-LCHlch(37.56, 83.99, 318.57°)
OKLaboklab(49.02% 0.1489 -0.1573)
OKLCHoklch(49.02% 0.217 313.4)
XYZxyz(19.2900, 9.8433, 44.0550)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22B4 #4CB422
analogous
#4122B4 #8A22B4 #B42295
triadic
#8A22B4 #B48A22 #22B48A
tetradic
#8A22B4 #B44122 #4CB422 #2295B4
square
#8A22B4 #B44122 #4CB422 #2295B4
split-complementary
#8A22B4 #95B422 #22B441
monochromatic
#3B0F4D #631881 #8A22B4 #AC3ADA #C16DE3

Accessibility & contrast

On white

7.07
#8A22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A22B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22B4
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22B4#FFFFFF#000000##FFFFFF
##8A22B41.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0A5BB1
Tritanopia (blue-blind)
#85476C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a22b4;
/* rgb */ color: rgb(138, 34, 180);
/* oklch */ color: oklch(49.0% 0.217 313.4);
Tailwind
colors: {
  custom: {
    50: '#b16bcb',
    500: '#8a22b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a22b4;
$custom-light: #b16bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22b4",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 282.74,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49022,
    "c": 0.2166,
    "h": 313.4
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#8A22B4
secondary
#84CA68
accent
#EB3D6F
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22B4

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

Preview Lab → · Contrast checker → · Palette generator →

#8A22B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva