#52239B#52239B

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

Color values

HEX#52239B
RGBrgb(82, 35, 155)
HSLhsl(264, 63%, 37%)
HSVhsv(264, 77%, 61%)
CMYKcmyk(47.1%, 77.4%, 0%, 39.2%)
CIE-LABlab(27.74, 47.46, -56.87)
CIE-LCHlch(27.74, 74.08, 309.84°)
OKLaboklab(39.86% 0.0746 -0.1631)
OKLCHoklch(39.86% 0.179 294.6)
XYZxyz(9.9955, 5.3622, 31.5123)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52239B #6C9B23
analogous
#23309B #52239B #8E239B
triadic
#52239B #9B5223 #239B52
tetradic
#52239B #9B2330 #6C9B23 #239B8E
square
#52239B #9B2330 #6C9B23 #239B8E
split-complementary
#52239B #9B8E23 #309B23
monochromatic
#1D0C37 #381869 #52239B #6C2ECD #8F5EDB

Accessibility & contrast

On white

10.13
#52239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#52239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52239B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52239B#FFFFFF#000000##FFFFFF
##52239B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#3D445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52239b;
/* rgb */ color: rgb(82, 35, 155);
/* oklch */ color: oklch(39.9% 0.179 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a63b9',
    500: '#52239b',
    950: '#000000',
  },
}
SCSS
$custom: #52239b;
$custom-light: #8a63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52239b",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 263.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39855,
    "c": 0.17932,
    "h": 294.6
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#52239B
secondary
#98BF5A
accent
#E642A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52239B

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

Preview Lab → · Contrast checker → · Palette generator →

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