#8227A2#8227A2

#8227A2 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.193 H 315.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8227A2
RGBrgb(130, 39, 162)
HSLhsl(284, 61%, 39%)
HSVhsv(284, 76%, 64%)
CMYKcmyk(19.8%, 75.9%, 0%, 36.5%)
CIE-LABlab(35.61, 56.20, -48.04)
CIE-LCHlch(35.61, 73.93, 319.48°)
OKLaboklab(46.99% 0.1377 -0.1354)
OKLCHoklch(46.99% 0.193 315.5)
XYZxyz(16.4520, 8.8061, 35.0085)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8227A2 #47A227
analogous
#4427A2 #8227A2 #A22785
triadic
#8227A2 #A28227 #27A282
tetradic
#8227A2 #A24427 #47A227 #2785A2
square
#8227A2 #A24427 #47A227 #2785A2
split-complementary
#8227A2 #85A227 #27A244
monochromatic
#330F3F #5A1B71 #8227A2 #A737CF #BD69DB

Accessibility & contrast

On white

7.61
#8227A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8227A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8227A2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8227A2#FFFFFF#000000##FFFFFF
##8227A21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#23569F
Tritanopia (blue-blind)
#804263
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8227a2;
/* rgb */ color: rgb(130, 39, 162);
/* oklch */ color: oklch(47.0% 0.193 315.5);
Tailwind
colors: {
  custom: {
    50: '#aa6bbe',
    500: '#8227a2',
    950: '#000000',
  },
}
SCSS
$custom: #8227a2;
$custom-light: #aa6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8227a2",
  "rgb": {
    "r": 130,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 284.39,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46992,
    "c": 0.19315,
    "h": 315.5
  },
  "luminance": 0.08805
}

Semantic roles & 50–950 ramp

primary
#8227A2
secondary
#7CC164
accent
#E4436D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8227A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8227A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva