#5227A6#5227A6

#5227A6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.188 H 291.3°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5227A6
RGBrgb(82, 39, 166)
HSLhsl(260, 62%, 40%)
HSVhsv(260, 77%, 65%)
CMYKcmyk(50.6%, 76.5%, 0%, 34.9%)
CIE-LABlab(29.41, 48.58, -60.83)
CIE-LCHlch(29.41, 77.85, 308.61°)
OKLaboklab(41.33% 0.0682 -0.1747)
OKLCHoklch(41.33% 0.188 291.3)
XYZxyz(11.0862, 5.9976, 36.6425)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227A6 #7BA627
analogous
#273BA6 #5227A6 #9127A6
triadic
#5227A6 #A65227 #27A652
tetradic
#5227A6 #A6273B #7BA627 #27A691
square
#5227A6 #A6273B #7BA627 #27A691
split-complementary
#5227A6 #A69127 #3BA627
monochromatic
#211043 #3A1B74 #5227A6 #6D3AD1 #916BDC

Accessibility & contrast

On white

9.55
#5227A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5227A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5227A6
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5227A6#FFFFFF#000000##FFFFFF
##5227A61.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#354A65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5227a6;
/* rgb */ color: rgb(82, 39, 166);
/* oklch */ color: oklch(41.3% 0.188 291.3);
Tailwind
colors: {
  custom: {
    50: '#8b66c1',
    500: '#5227a6',
    950: '#000000',
  },
}
SCSS
$custom: #5227a6;
$custom-light: #8b66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5227a6",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 260.315,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4133,
    "c": 0.18755,
    "h": 291.3
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#5227A6
secondary
#A3C366
accent
#E543AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5227A6

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

Preview Lab → · Contrast checker → · Palette generator →

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