#5227A3#5227A3

#5227A3 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.184 H 292.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5227A3
RGBrgb(82, 39, 163)
HSLhsl(261, 61%, 40%)
HSVhsv(261, 76%, 64%)
CMYKcmyk(49.7%, 76.1%, 0%, 36.1%)
CIE-LABlab(29.13, 47.76, -59.47)
CIE-LCHlch(29.13, 76.27, 308.77°)
OKLaboklab(41.05% 0.0691 -0.1707)
OKLCHoklch(41.05% 0.184 292)
XYZxyz(10.8142, 5.8888, 35.2101)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227A3 #78A327
analogous
#273AA3 #5227A3 #9027A3
triadic
#5227A3 #A35227 #27A352
tetradic
#5227A3 #A3273A #78A327 #27A390
square
#5227A3 #A3273A #78A327 #27A390
split-complementary
#5227A3 #A39027 #3AA327
monochromatic
#200F40 #391B72 #5227A3 #6C38CF #9169DB

Accessibility & contrast

On white

9.64
#5227A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5227A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5227A3#FFFFFF#000000##FFFFFF
##5227A31.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#384963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5227a3;
/* rgb */ color: rgb(82, 39, 163);
/* oklch */ color: oklch(41.1% 0.184 292.0);
Tailwind
colors: {
  custom: {
    50: '#8b66bf',
    500: '#5227a3',
    950: '#000000',
  },
}
SCSS
$custom: #5227a3;
$custom-light: #8b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5227a3",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 260.806,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41052,
    "c": 0.18414,
    "h": 292
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#5227A3
secondary
#A1C164
accent
#E443AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5227A3

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

Preview Lab → · Contrast checker → · Palette generator →

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