#5226BA#5226BA

#5226BA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.211 H 287.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5226BA
RGBrgb(82, 38, 186)
HSLhsl(258, 66%, 44%)
HSVhsv(258, 80%, 73%)
CMYKcmyk(55.9%, 79.6%, 0%, 27.1%)
CIE-LABlab(31.17, 54.51, -69.88)
CIE-LCHlch(31.17, 88.63, 307.96°)
OKLaboklab(43.14% 0.063 -0.2012)
OKLCHoklch(43.14% 0.211 287.4)
XYZxyz(13.0331, 6.7245, 47.0561)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226BA #8EBA26
analogous
#2644BA #5226BA #9C26BA
triadic
#5226BA #BA5226 #26BA52
tetradic
#5226BA #BA2644 #8EBA26 #26BA9C
square
#5226BA #BA2644 #8EBA26 #26BA9C
split-complementary
#5226BA #BA9C26 #44BA26
monochromatic
#251154 #3C1C87 #5226BA #7044D9 #9777E3

Accessibility & contrast

On white

8.96
#5226BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5226BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226BA
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226BA#FFFFFF#000000##FFFFFF
##5226BA1.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#235270
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5226ba;
/* rgb */ color: rgb(82, 38, 186);
/* oklch */ color: oklch(43.1% 0.211 287.4);
Tailwind
colors: {
  custom: {
    50: '#8f67d0',
    500: '#5226ba',
    950: '#000000',
  },
}
SCSS
$custom: #5226ba;
$custom-light: #8f67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5226ba",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 186
  },
  "hsl": {
    "h": 257.838,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43142,
    "c": 0.2108,
    "h": 287.4
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#5226BA
secondary
#B0CB71
accent
#E93FB6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5226BA

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

Preview Lab → · Contrast checker → · Palette generator →

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