#52259E#52259E

#52259E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.181 H 293.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#52259E
RGBrgb(82, 37, 158)
HSLhsl(262, 62%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(48.1%, 76.6%, 0%, 38%)
CIE-LABlab(28.34, 47.34, -57.72)
CIE-LCHlch(28.34, 74.65, 309.36°)
OKLaboklab(40.36% 0.0721 -0.1656)
OKLCHoklch(40.36% 0.181 293.5)
XYZxyz(10.3111, 5.5853, 32.8759)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52259E #719E25
analogous
#25349E #52259E #8E259E
triadic
#52259E #9E5225 #259E52
tetradic
#52259E #9E2534 #719E25 #259E8E
square
#52259E #9E2534 #719E25 #259E8E
split-complementary
#52259E #9E8E25 #349E25
monochromatic
#1F0E3B #38196C #52259E #6C31CF #8F63DA

Accessibility & contrast

On white

9.92
#52259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52259E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52259E#FFFFFF#000000##FFFFFF
##52259E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#3B4660
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #52259e;
/* rgb */ color: rgb(82, 37, 158);
/* oklch */ color: oklch(40.4% 0.181 293.5);
Tailwind
colors: {
  custom: {
    50: '#8a65bc',
    500: '#52259e',
    950: '#000000',
  },
}
SCSS
$custom: #52259e;
$custom-light: #8a65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52259e",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 262.314,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.18058,
    "h": 293.5
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#52259E
secondary
#9CC05F
accent
#E543A9
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #52259E

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

Preview Lab → · Contrast checker → · Palette generator →

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