#52259A#52259A

#52259A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.176 H 294.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#52259A
RGBrgb(82, 37, 154)
HSLhsl(263, 61%, 37%)
HSVhsv(263, 76%, 60%)
CMYKcmyk(46.8%, 76%, 0%, 39.6%)
CIE-LABlab(27.98, 46.26, -55.88)
CIE-LCHlch(27.98, 72.54, 309.62°)
OKLaboklab(39.99% 0.0731 -0.1601)
OKLCHoklch(39.99% 0.176 294.5)
XYZxyz(9.9724, 5.4498, 31.0921)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52259A #6D9A25
analogous
#25329A #52259A #8D259A
triadic
#52259A #9A5225 #259A52
tetradic
#52259A #9A2532 #6D9A25 #259A8D
square
#52259A #9A2532 #6D9A25 #259A8D
split-complementary
#52259A #9A8D25 #329A25
monochromatic
#1D0D37 #381969 #52259A #6C31CB #8F60D9

Accessibility & contrast

On white

10.05
#52259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#52259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52259A
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52259A#FFFFFF#000000##FFFFFF
##52259A1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#3D445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52259a;
/* rgb */ color: rgb(82, 37, 154);
/* oklch */ color: oklch(40.0% 0.176 294.5);
Tailwind
colors: {
  custom: {
    50: '#8a64b9',
    500: '#52259a',
    950: '#000000',
  },
}
SCSS
$custom: #52259a;
$custom-light: #8a64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52259a",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 263.077,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.17606,
    "h": 294.5
  },
  "luminance": 0.0545
}

Semantic roles & 50–950 ramp

primary
#52259A
secondary
#99BE5D
accent
#E443A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52259A

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

Preview Lab → · Contrast checker → · Palette generator →

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