#5225B1#5225B1

#5225B1 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.202 H 289.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5225B1
RGBrgb(82, 37, 177)
HSLhsl(259, 65%, 42%)
HSVhsv(259, 79%, 69%)
CMYKcmyk(53.7%, 79.1%, 0%, 30.6%)
CIE-LABlab(30.13, 52.50, -66.24)
CIE-LCHlch(30.13, 84.52, 308.40°)
OKLaboklab(42.16% 0.0665 -0.1905)
OKLCHoklch(42.16% 0.202 289.2)
XYZxyz(12.0747, 6.2907, 42.1644)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225B1 #84B125
analogous
#253EB1 #5225B1 #9825B1
triadic
#5225B1 #B15225 #25B152
tetradic
#5225B1 #B1253E #84B125 #25B198
square
#5225B1 #B1253E #84B125 #25B198
split-complementary
#5225B1 #B19825 #3EB125
monochromatic
#23104C #3B1A7E #5225B1 #6E3DD6 #946FE1

Accessibility & contrast

On white

9.30
#5225B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5225B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225B1
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225B1#FFFFFF#000000##FFFFFF
##5225B11.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5225b1;
/* rgb */ color: rgb(82, 37, 177);
/* oklch */ color: oklch(42.2% 0.202 289.2);
Tailwind
colors: {
  custom: {
    50: '#8d66ca',
    500: '#5225b1',
    950: '#000000',
  },
}
SCSS
$custom: #5225b1;
$custom-light: #8d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5225b1",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 259.286,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42156,
    "c": 0.20178,
    "h": 289.2
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#5225B1
secondary
#AAC86A
accent
#E83FB2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225B1

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

Preview Lab → · Contrast checker → · Palette generator →

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