#5227A4#5227A4

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

Color values

HEX#5227A4
RGBrgb(82, 39, 164)
HSLhsl(261, 62%, 40%)
HSVhsv(261, 76%, 64%)
CMYKcmyk(50%, 76.2%, 0%, 35.7%)
CIE-LABlab(29.22, 48.03, -59.92)
CIE-LCHlch(29.22, 76.79, 308.71°)
OKLaboklab(41.14% 0.0688 -0.172)
OKLCHoklch(41.14% 0.185 291.8)
XYZxyz(10.9041, 5.9248, 35.6838)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227A4 #79A427
analogous
#273BA4 #5227A4 #9127A4
triadic
#5227A4 #A45227 #27A452
tetradic
#5227A4 #A4273B #79A427 #27A491
square
#5227A4 #A4273B #79A427 #27A491
split-complementary
#5227A4 #A49127 #3BA427
monochromatic
#210F41 #391B73 #5227A4 #6C38D0 #916ADC

Accessibility & contrast

On white

9.61
#5227A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5227A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5227A4#FFFFFF#000000##FFFFFF
##5227A41.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#374964
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5227a4;
/* rgb */ color: rgb(82, 39, 164);
/* oklch */ color: oklch(41.1% 0.185 291.8);
Tailwind
colors: {
  custom: {
    50: '#8b66c0',
    500: '#5227a4',
    950: '#000000',
  },
}
SCSS
$custom: #5227a4;
$custom-light: #8b66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5227a4",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 260.64,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41144,
    "c": 0.18527,
    "h": 291.8
  },
  "luminance": 0.05925
}

Semantic roles & 50–950 ramp

primary
#5227A4
secondary
#A2C265
accent
#E543AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5227A4

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

Preview Lab → · Contrast checker → · Palette generator →

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