#5227AE#5227AE

#5227AE is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.197 H 289.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5227AE
RGBrgb(82, 39, 174)
HSLhsl(259, 63%, 42%)
HSVhsv(259, 78%, 68%)
CMYKcmyk(52.9%, 77.6%, 0%, 31.8%)
CIE-LABlab(30.16, 50.78, -64.40)
CIE-LCHlch(30.16, 82.01, 308.25°)
OKLaboklab(42.09% 0.066 -0.1852)
OKLCHoklch(42.09% 0.197 289.6)
XYZxyz(11.8430, 6.3003, 40.6283)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227AE #83AE27
analogous
#2740AE #5227AE #9627AE
triadic
#5227AE #AE5227 #27AE52
tetradic
#5227AE #AE2740 #83AE27 #27AE96
square
#5227AE #AE2740 #83AE27 #27AE96
split-complementary
#5227AE #AE9627 #40AE27
monochromatic
#23114A #3A1C7C #5227AE #6E3ED4 #9470DF

Accessibility & contrast

On white

9.29
#5227AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5227AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5227AE
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5227AE#FFFFFF#000000##FFFFFF
##5227AE1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#2F4D6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5227ae;
/* rgb */ color: rgb(82, 39, 174);
/* oklch */ color: oklch(42.1% 0.197 289.6);
Tailwind
colors: {
  custom: {
    50: '#8d66c7',
    500: '#5227ae',
    950: '#000000',
  },
}
SCSS
$custom: #5227ae;
$custom-light: #8d66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5227ae",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 259.111,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42085,
    "c": 0.19656,
    "h": 289.6
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#5227AE
secondary
#A9C66B
accent
#E641B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5227AE

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

Preview Lab → · Contrast checker → · Palette generator →

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