#52249F#52249F

#52249F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.183 H 293.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#52249F
RGBrgb(82, 36, 159)
HSLhsl(262, 63%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(48.4%, 77.4%, 0%, 37.6%)
CIE-LABlab(28.27, 48.07, -58.45)
CIE-LCHlch(28.27, 75.68, 309.44°)
OKLaboklab(40.34% 0.0726 -0.1677)
OKLCHoklch(40.34% 0.183 293.4)
XYZxyz(10.3668, 5.5585, 33.3208)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52249F #719F24
analogous
#24339F #52249F #8F249F
triadic
#52249F #9F5224 #249F52
tetradic
#52249F #9F2433 #719F24 #249F8F
square
#52249F #9F2433 #719F24 #249F8F
split-complementary
#52249F #9F8F24 #339F24
monochromatic
#1F0D3B #38196D #52249F #6C30D0 #8F62DB

Accessibility & contrast

On white

9.94
#52249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#52249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52249F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52249F#FFFFFF#000000##FFFFFF
##52249F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#3A4660
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #52249f;
/* rgb */ color: rgb(82, 36, 159);
/* oklch */ color: oklch(40.3% 0.183 293.4);
Tailwind
colors: {
  custom: {
    50: '#8b64bc',
    500: '#52249f',
    950: '#000000',
  },
}
SCSS
$custom: #52249f;
$custom-light: #8b64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52249f",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 262.439,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40336,
    "c": 0.18274,
    "h": 293.4
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#52249F
secondary
#9CC15E
accent
#E642A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #52249F

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

Preview Lab → · Contrast checker → · Palette generator →

#52249F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva