#5226B0#5226B0

#5226B0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.200 H 289.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5226B0
RGBrgb(82, 38, 176)
HSLhsl(259, 64%, 42%)
HSVhsv(259, 78%, 69%)
CMYKcmyk(53.4%, 78.4%, 0%, 31%)
CIE-LABlab(30.19, 51.78, -65.54)
CIE-LCHlch(30.19, 83.53, 308.31°)
OKLaboklab(42.17% 0.0661 -0.1885)
OKLCHoklch(42.17% 0.2 289.3)
XYZxyz(12.0070, 6.3141, 41.6520)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226B0 #84B026
analogous
#263FB0 #5226B0 #9726B0
triadic
#5226B0 #B05226 #26B052
tetradic
#5226B0 #B0263F #84B026 #26B097
square
#5226B0 #B0263F #84B026 #26B097
split-complementary
#5226B0 #B09726 #3FB026
monochromatic
#23104B #3B1B7E #5226B0 #6E3ED5 #9470E0

Accessibility & contrast

On white

9.28
#5226B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5226B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226B0
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226B0#FFFFFF#000000##FFFFFF
##5226B01.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#2E4E6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5226b0;
/* rgb */ color: rgb(82, 38, 176);
/* oklch */ color: oklch(42.2% 0.200 289.3);
Tailwind
colors: {
  custom: {
    50: '#8d66c9',
    500: '#5226b0',
    950: '#000000',
  },
}
SCSS
$custom: #5226b0;
$custom-light: #8d66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5226b0",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 259.13,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.19975,
    "h": 289.3
  },
  "luminance": 0.06315
}

Semantic roles & 50–950 ramp

primary
#5226B0
secondary
#AAC76B
accent
#E740B2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5226B0

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

Preview Lab → · Contrast checker → · Palette generator →

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