#52258B#52258B

#52258B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.159 H 298.8°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#52258B
RGBrgb(82, 37, 139)
HSLhsl(266, 58%, 35%)
HSVhsv(266, 73%, 55%)
CMYKcmyk(41%, 73.4%, 0%, 45.5%)
CIE-LABlab(26.68, 42.23, -48.75)
CIE-LCHlch(26.68, 64.50, 310.90°)
OKLaboklab(38.67% 0.0766 -0.1392)
OKLCHoklch(38.67% 0.159 298.8)
XYZxyz(8.8003, 4.9809, 24.9189)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52258B #5E8B25
analogous
#252B8B #52258B #85258B
triadic
#52258B #8B5225 #258B52
tetradic
#52258B #8B252B #5E8B25 #258B85
square
#52258B #8B252B #5E8B25 #258B85
split-complementary
#52258B #8B8525 #2B8B25
monochromatic
#190B2A #35185B #52258B #6F32BB #8E58D3

Accessibility & contrast

On white

10.52
#52258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#52258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52258B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52258B#FFFFFF#000000##FFFFFF
##52258B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#443E55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52258b;
/* rgb */ color: rgb(82, 37, 139);
/* oklch */ color: oklch(38.7% 0.159 298.8);
Tailwind
colors: {
  custom: {
    50: '#8864ae',
    500: '#52258b',
    950: '#000000',
  },
}
SCSS
$custom: #52258b;
$custom-light: #8864ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52258b",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 266.471,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38673,
    "c": 0.15891,
    "h": 298.8
  },
  "luminance": 0.04981
}

Semantic roles & 50–950 ramp

primary
#52258B
secondary
#8CB755
accent
#E1479D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52258B

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

Preview Lab → · Contrast checker → · Palette generator →

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