#5227A2#5227A2

#5227A2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.183 H 292.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5227A2
RGBrgb(82, 39, 162)
HSLhsl(261, 61%, 39%)
HSVhsv(261, 76%, 64%)
CMYKcmyk(49.4%, 75.9%, 0%, 36.5%)
CIE-LABlab(29.04, 47.48, -59.01)
CIE-LCHlch(29.04, 75.74, 308.82°)
OKLaboklab(40.96% 0.0693 -0.1694)
OKLCHoklch(40.96% 0.183 292.3)
XYZxyz(10.7250, 5.8531, 34.7401)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227A2 #77A227
analogous
#2739A2 #5227A2 #9027A2
triadic
#5227A2 #A25227 #27A252
tetradic
#5227A2 #A22739 #77A227 #27A290
square
#5227A2 #A22739 #77A227 #27A290
split-complementary
#5227A2 #A29027 #39A227
monochromatic
#200F3F #391B71 #5227A2 #6C37CF #9169DB

Accessibility & contrast

On white

9.67
#5227A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5227A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5227A2#FFFFFF#000000##FFFFFF
##5227A21.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#384863
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5227a2;
/* rgb */ color: rgb(82, 39, 162);
/* oklch */ color: oklch(41.0% 0.183 292.3);
Tailwind
colors: {
  custom: {
    50: '#8b66bf',
    500: '#5227a2',
    950: '#000000',
  },
}
SCSS
$custom: #5227a2;
$custom-light: #8b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5227a2",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 260.976,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4096,
    "c": 0.183,
    "h": 292.3
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#5227A2
secondary
#A0C164
accent
#E443AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5227A2

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

Preview Lab → · Contrast checker → · Palette generator →

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