#5227AB#5227AB

#5227AB is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.193 H 290.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5227AB
RGBrgb(82, 39, 171)
HSLhsl(260, 63%, 41%)
HSVhsv(260, 77%, 67%)
CMYKcmyk(52%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.87, 49.95, -63.07)
CIE-LCHlch(29.87, 80.46, 308.38°)
OKLaboklab(41.8% 0.0668 -0.1813)
OKLCHoklch(41.8% 0.193 290.2)
XYZxyz(11.5538, 6.1847, 39.1052)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227AB #80AB27
analogous
#273EAB #5227AB #9427AB
triadic
#5227AB #AB5227 #27AB52
tetradic
#5227AB #AB273E #80AB27 #27AB94
square
#5227AB #AB273E #80AB27 #27AB94
split-complementary
#5227AB #AB9427 #3EAB27
monochromatic
#221047 #3A1C79 #5227AB #6D3DD3 #936EDE

Accessibility & contrast

On white

9.39
#5227AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5227AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5227AB#FFFFFF#000000##FFFFFF
##5227AB1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#324C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5227ab;
/* rgb */ color: rgb(82, 39, 171);
/* oklch */ color: oklch(41.8% 0.193 290.2);
Tailwind
colors: {
  custom: {
    50: '#8c66c5',
    500: '#5227ab',
    950: '#000000',
  },
}
SCSS
$custom: #5227ab;
$custom-light: #8c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5227ab",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 259.545,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.418,
    "c": 0.19319,
    "h": 290.2
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5227AB

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

Preview Lab → · Contrast checker → · Palette generator →

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