#5227A1#5227A1

#5227A1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.182 H 292.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5227A1
RGBrgb(82, 39, 161)
HSLhsl(261, 61%, 39%)
HSVhsv(261, 76%, 63%)
CMYKcmyk(49.1%, 75.8%, 0%, 36.9%)
CIE-LABlab(28.95, 47.21, -58.55)
CIE-LCHlch(28.95, 75.21, 308.88°)
OKLaboklab(40.87% 0.0696 -0.168)
OKLCHoklch(40.87% 0.182 292.5)
XYZxyz(10.6364, 5.8177, 34.2738)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227A1 #76A127
analogous
#2739A1 #5227A1 #8F27A1
triadic
#5227A1 #A15227 #27A152
tetradic
#5227A1 #A12739 #76A127 #27A18F
square
#5227A1 #A12739 #76A127 #27A18F
split-complementary
#5227A1 #A18F27 #39A127
monochromatic
#200F3E #391B70 #5227A1 #6C37CE #9068DA

Accessibility & contrast

On white

9.71
#5227A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5227A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5227A1#FFFFFF#000000##FFFFFF
##5227A11.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#394862
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5227a1;
/* rgb */ color: rgb(82, 39, 161);
/* oklch */ color: oklch(40.9% 0.182 292.5);
Tailwind
colors: {
  custom: {
    50: '#8b66be',
    500: '#5227a1',
    950: '#000000',
  },
}
SCSS
$custom: #5227a1;
$custom-light: #8b66be;
$custom-dark: #000000;
JSON
{
  "hex": "#5227a1",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 261.148,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40868,
    "c": 0.18186,
    "h": 292.5
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

primary
#5227A1
secondary
#A0C063
accent
#E444AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5227A1

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

Preview Lab → · Contrast checker → · Palette generator →

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