#5225B0#5225B0

#5225B0 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.201 H 289.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5225B0
RGBrgb(82, 37, 176)
HSLhsl(259, 65%, 42%)
HSVhsv(259, 79%, 69%)
CMYKcmyk(53.4%, 79%, 0%, 31%)
CIE-LABlab(30.04, 52.23, -65.80)
CIE-LCHlch(30.04, 84.01, 308.44°)
OKLaboklab(42.06% 0.0668 -0.1892)
OKLCHoklch(42.06% 0.201 289.4)
XYZxyz(11.9754, 6.2510, 41.6414)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225B0 #83B025
analogous
#253EB0 #5225B0 #9725B0
triadic
#5225B0 #B05225 #25B052
tetradic
#5225B0 #B0253E #83B025 #25B097
square
#5225B0 #B0253E #83B025 #25B097
split-complementary
#5225B0 #B09725 #3EB025
monochromatic
#23104B #3A1A7D #5225B0 #6E3CD6 #946FE1

Accessibility & contrast

On white

9.33
#5225B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5225B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225B0
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225B0#FFFFFF#000000##FFFFFF
##5225B01.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B4
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#2E4D6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5225b0;
/* rgb */ color: rgb(82, 37, 176);
/* oklch */ color: oklch(42.1% 0.201 289.4);
Tailwind
colors: {
  custom: {
    50: '#8d66c9',
    500: '#5225b0',
    950: '#000000',
  },
}
SCSS
$custom: #5225b0;
$custom-light: #8d66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5225b0",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 176
  },
  "hsl": {
    "h": 259.424,
    "s": 65.258,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42059,
    "c": 0.20067,
    "h": 289.4
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

primary
#5225B0
secondary
#A9C76A
accent
#E840B2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225B0

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

Preview Lab → · Contrast checker → · Palette generator →

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