#52258D#52258D

#52258D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.161 H 298.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#52258D
RGBrgb(82, 37, 141)
HSLhsl(266, 58%, 35%)
HSVhsv(266, 74%, 55%)
CMYKcmyk(41.8%, 73.8%, 0%, 44.7%)
CIE-LABlab(26.85, 42.76, -49.72)
CIE-LCHlch(26.85, 65.58, 310.70°)
OKLaboklab(38.85% 0.0762 -0.1421)
OKLCHoklch(38.85% 0.161 298.2)
XYZxyz(8.9477, 5.0399, 25.6955)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52258D #608D25
analogous
#252C8D #52258D #86258D
triadic
#52258D #8D5225 #258D52
tetradic
#52258D #8D252C #608D25 #258D86
square
#52258D #8D252C #608D25 #258D86
split-complementary
#52258D #8D8625 #2C8D25
monochromatic
#1A0C2C #36185D #52258D #6E32BD #8E59D3

Accessibility & contrast

On white

10.46
#52258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#52258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52258D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52258D#FFFFFF#000000##FFFFFF
##52258D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#433F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52258d;
/* rgb */ color: rgb(82, 37, 141);
/* oklch */ color: oklch(38.8% 0.161 298.2);
Tailwind
colors: {
  custom: {
    50: '#8864af',
    500: '#52258d',
    950: '#000000',
  },
}
SCSS
$custom: #52258d;
$custom-light: #8864af;
$custom-dark: #000000;
JSON
{
  "hex": "#52258d",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 265.962,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.16122,
    "h": 298.2
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#52258D
secondary
#8EB856
accent
#E2469E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52258D

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

Preview Lab → · Contrast checker → · Palette generator →

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