#5226B1#5226B1

#5226B1 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.201 H 289.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5226B1
RGBrgb(82, 38, 177)
HSLhsl(259, 65%, 42%)
HSVhsv(259, 79%, 69%)
CMYKcmyk(53.7%, 78.5%, 0%, 30.6%)
CIE-LABlab(30.29, 52.05, -65.98)
CIE-LCHlch(30.29, 84.04, 308.27°)
OKLaboklab(42.26% 0.0658 -0.1898)
OKLCHoklch(42.26% 0.201 289.1)
XYZxyz(12.1063, 6.3538, 42.1750)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226B1 #85B126
analogous
#263FB1 #5226B1 #9826B1
triadic
#5226B1 #B15226 #26B152
tetradic
#5226B1 #B1263F #85B126 #26B198
square
#5226B1 #B1263F #85B126 #26B198
split-complementary
#5226B1 #B19826 #3FB126
monochromatic
#23104C #3B1B7F #5226B1 #6E3FD6 #9471E0

Accessibility & contrast

On white

9.25
#5226B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5226B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226B1
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226B1#FFFFFF#000000##FFFFFF
##5226B11.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0044AE
Tritanopia (blue-blind)
#2D4E6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5226b1;
/* rgb */ color: rgb(82, 38, 177);
/* oklch */ color: oklch(42.3% 0.201 289.1);
Tailwind
colors: {
  custom: {
    50: '#8d66ca',
    500: '#5226b1',
    950: '#000000',
  },
}
SCSS
$custom: #5226b1;
$custom-light: #8d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5226b1",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 258.993,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42263,
    "c": 0.20086,
    "h": 289.1
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5226B1

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

Preview Lab → · Contrast checker → · Palette generator →

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