#52259F#52259F

#52259F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.182 H 293.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#52259F
RGBrgb(82, 37, 159)
HSLhsl(262, 62%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(48.4%, 76.7%, 0%, 37.6%)
CIE-LABlab(28.43, 47.61, -58.18)
CIE-LCHlch(28.43, 75.18, 309.29°)
OKLaboklab(40.45% 0.0718 -0.1669)
OKLCHoklch(40.45% 0.182 293.3)
XYZxyz(10.3975, 5.6198, 33.3311)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52259F #729F25
analogous
#25359F #52259F #8F259F
triadic
#52259F #9F5225 #259F52
tetradic
#52259F #9F2535 #729F25 #259F8F
square
#52259F #9F2535 #729F25 #259F8F
split-complementary
#52259F #9F8F25 #359F25
monochromatic
#1F0E3C #38196D #52259F #6C32CF #9064DB

Accessibility & contrast

On white

9.89
#52259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#52259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52259F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52259F#FFFFFF#000000##FFFFFF
##52259F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52259f;
/* rgb */ color: rgb(82, 37, 159);
/* oklch */ color: oklch(40.5% 0.182 293.3);
Tailwind
colors: {
  custom: {
    50: '#8b65bc',
    500: '#52259f',
    950: '#000000',
  },
}
SCSS
$custom: #52259f;
$custom-light: #8b65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52259f",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 262.131,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4045,
    "c": 0.18171,
    "h": 293.3
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#52259F
secondary
#9DC05F
accent
#E542A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #52259F

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

Preview Lab → · Contrast checker → · Palette generator →

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