#5225B2#5225B2

#5225B2 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.3% C 0.203 H 289.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5225B2
RGBrgb(82, 37, 178)
HSLhsl(259, 66%, 42%)
HSVhsv(259, 79%, 70%)
CMYKcmyk(53.9%, 79.2%, 0%, 30.2%)
CIE-LABlab(30.23, 52.77, -66.67)
CIE-LCHlch(30.23, 85.03, 308.36°)
OKLaboklab(42.25% 0.0662 -0.1918)
OKLCHoklch(42.25% 0.203 289)
XYZxyz(12.1748, 6.3307, 42.6913)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225B2 #85B225
analogous
#253FB2 #5225B2 #9925B2
triadic
#5225B2 #B25225 #25B252
tetradic
#5225B2 #B2253F #85B225 #25B299
square
#5225B2 #B2253F #85B225 #25B299
split-complementary
#5225B2 #B29925 #3FB225
monochromatic
#23104D #3B1A7F #5225B2 #6E3DD7 #9470E1

Accessibility & contrast

On white

9.27
#5225B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5225B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225B2
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225B2#FFFFFF#000000##FFFFFF
##5225B21.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#2C4E6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5225b2;
/* rgb */ color: rgb(82, 37, 178);
/* oklch */ color: oklch(42.3% 0.203 289.0);
Tailwind
colors: {
  custom: {
    50: '#8d66ca',
    500: '#5225b2',
    950: '#000000',
  },
}
SCSS
$custom: #5225b2;
$custom-light: #8d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5225b2",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 259.149,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42253,
    "c": 0.20288,
    "h": 289
  },
  "luminance": 0.06331
}

Semantic roles & 50–950 ramp

primary
#5225B2
secondary
#AAC86B
accent
#E93FB3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225B2

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

Preview Lab → · Contrast checker → · Palette generator →

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