#52239C#52239C

#52239C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.180 H 294.3°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#52239C
RGBrgb(82, 35, 156)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 78%, 61%)
CMYKcmyk(47.4%, 77.6%, 0%, 38.8%)
CIE-LABlab(27.83, 47.73, -57.34)
CIE-LCHlch(27.83, 74.60, 309.78°)
OKLaboklab(39.95% 0.0743 -0.1644)
OKLCHoklch(39.95% 0.18 294.3)
XYZxyz(10.0798, 5.3959, 31.9565)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52239C #6D9C23
analogous
#23309C #52239C #8F239C
triadic
#52239C #9C5223 #239C52
tetradic
#52239C #9C2330 #6D9C23 #239C8F
square
#52239C #9C2330 #6D9C23 #239C8F
split-complementary
#52239C #9C8F23 #309C23
monochromatic
#1D0D38 #38186A #52239C #6C2ECE #8F5EDB

Accessibility & contrast

On white

10.10
#52239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#52239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52239C
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52239C#FFFFFF#000000##FFFFFF
##52239C1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#3C445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52239c;
/* rgb */ color: rgb(82, 35, 156);
/* oklch */ color: oklch(39.9% 0.180 294.3);
Tailwind
colors: {
  custom: {
    50: '#8a63ba',
    500: '#52239c',
    950: '#000000',
  },
}
SCSS
$custom: #52239c;
$custom-light: #8a63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52239c",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 263.306,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39947,
    "c": 0.18043,
    "h": 294.3
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#52239C
secondary
#99C05B
accent
#E641A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52239C

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

Preview Lab → · Contrast checker → · Palette generator →

#52239C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva