#52259B#52259B

#52259B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.177 H 294.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#52259B
RGBrgb(82, 37, 155)
HSLhsl(263, 61%, 38%)
HSVhsv(263, 76%, 61%)
CMYKcmyk(47.1%, 76.1%, 0%, 39.2%)
CIE-LABlab(28.07, 46.53, -56.34)
CIE-LCHlch(28.07, 73.07, 309.55°)
OKLaboklab(40.08% 0.0729 -0.1615)
OKLCHoklch(40.08% 0.177 294.3)
XYZxyz(10.0560, 5.4832, 31.5325)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52259B #6E9B25
analogous
#25339B #52259B #8D259B
triadic
#52259B #9B5225 #259B52
tetradic
#52259B #9B2533 #6E9B25 #259B8D
square
#52259B #9B2533 #6E9B25 #259B8D
split-complementary
#52259B #9B8D25 #339B25
monochromatic
#1E0D38 #38196A #52259B #6C31CC #8F61D9

Accessibility & contrast

On white

10.02
#52259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#52259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52259B
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52259B#FFFFFF#000000##FFFFFF
##52259B1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#3C455E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52259b;
/* rgb */ color: rgb(82, 37, 155);
/* oklch */ color: oklch(40.1% 0.177 294.3);
Tailwind
colors: {
  custom: {
    50: '#8a64b9',
    500: '#52259b',
    950: '#000000',
  },
}
SCSS
$custom: #52259b;
$custom-light: #8a64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52259b",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 262.881,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40084,
    "c": 0.17719,
    "h": 294.3
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#52259B
secondary
#99BF5D
accent
#E543A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52259B

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

Preview Lab → · Contrast checker → · Palette generator →

#52259B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva