#5227AA#5227AA

#5227AA is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.192 H 290.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5227AA
RGBrgb(82, 39, 170)
HSLhsl(260, 63%, 41%)
HSVhsv(260, 77%, 67%)
CMYKcmyk(51.8%, 77.1%, 0%, 33.3%)
CIE-LABlab(29.78, 49.68, -62.62)
CIE-LCHlch(29.78, 79.94, 308.42°)
OKLaboklab(41.71% 0.0671 -0.1799)
OKLCHoklch(41.71% 0.192 290.5)
XYZxyz(11.4588, 6.1467, 38.6051)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227AA #7FAA27
analogous
#273DAA #5227AA #9327AA
triadic
#5227AA #AA5227 #27AA52
tetradic
#5227AA #AA273D #7FAA27 #27AA93
square
#5227AA #AA273D #7FAA27 #27AA93
split-complementary
#5227AA #AA9327 #3DAA27
monochromatic
#221046 #3A1C78 #5227AA #6D3CD2 #926EDE

Accessibility & contrast

On white

9.42
#5227AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5227AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5227AA
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5227AA#FFFFFF#000000##FFFFFF
##5227AA1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#334C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5227aa;
/* rgb */ color: rgb(82, 39, 170);
/* oklch */ color: oklch(41.7% 0.192 290.5);
Tailwind
colors: {
  custom: {
    50: '#8c66c4',
    500: '#5227aa',
    950: '#000000',
  },
}
SCSS
$custom: #5227aa;
$custom-light: #8c66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5227aa",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 259.695,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.19206,
    "h": 290.5
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#5227AA
secondary
#A6C469
accent
#E642B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5227AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5227AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva