#5227BA#5227BA

#5227BA is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.210 H 287.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5227BA
RGBrgb(82, 39, 186)
HSLhsl(258, 65%, 44%)
HSVhsv(258, 79%, 73%)
CMYKcmyk(55.9%, 79%, 0%, 27.1%)
CIE-LABlab(31.32, 54.07, -69.63)
CIE-LCHlch(31.32, 88.16, 307.83°)
OKLaboklab(43.25% 0.0624 -0.2004)
OKLCHoklch(43.25% 0.21 287.3)
XYZxyz(13.0655, 6.7893, 47.0669)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227BA #8FBA27
analogous
#2746BA #5227BA #9C27BA
triadic
#5227BA #BA5227 #27BA52
tetradic
#5227BA #BA2746 #8FBA27 #27BA9C
square
#5227BA #BA2746 #8FBA27 #27BA9C
split-complementary
#5227BA #BA9C27 #46BA27
monochromatic
#251255 #3C1C87 #5227BA #7146D8 #9879E3

Accessibility & contrast

On white

8.91
#5227BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5227BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5227BA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5227BA#FFFFFF#000000##FFFFFF
##5227BA1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#235271
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5227ba;
/* rgb */ color: rgb(82, 39, 186);
/* oklch */ color: oklch(43.2% 0.210 287.3);
Tailwind
colors: {
  custom: {
    50: '#8e67d0',
    500: '#5227ba',
    950: '#000000',
  },
}
SCSS
$custom: #5227ba;
$custom-light: #8e67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5227ba",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 257.551,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43247,
    "c": 0.20993,
    "h": 287.3
  },
  "luminance": 0.0679
}

Semantic roles & 50–950 ramp

primary
#5227BA
secondary
#B1CB72
accent
#E840B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5227BA

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

Preview Lab → · Contrast checker → · Palette generator →

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