#52389C#52389C

#52389C is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.155 H 290.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#52389C
RGBrgb(82, 56, 156)
HSLhsl(256, 47%, 42%)
HSVhsv(256, 64%, 61%)
CMYKcmyk(47.4%, 64.1%, 0%, 38.8%)
CIE-LABlab(31.86, 36.59, -50.77)
CIE-LCHlch(31.86, 62.58, 305.78°)
OKLaboklab(42.82% 0.0537 -0.1452)
OKLCHoklch(42.82% 0.155 290.3)
XYZxyz(10.8929, 7.0221, 32.2275)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52389C #829C38
analogous
#38509C #52389C #84389C
triadic
#52389C #9C5238 #389C52
tetradic
#52389C #9C3850 #829C38 #389C84
square
#52389C #9C3850 #829C38 #389C84
split-complementary
#52389C #9C8438 #509C38
monochromatic
#231842 #3A286F #52389C #6E51C0 #937ED1

Accessibility & contrast

On white

8.73
#52389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#52389C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52389C
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52389C#FFFFFF#000000##FFFFFF
##52389C1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#3B5064
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #52389c;
/* rgb */ color: rgb(82, 56, 156);
/* oklch */ color: oklch(42.8% 0.155 290.3);
Tailwind
colors: {
  custom: {
    50: '#8970ba',
    500: '#52389c',
    950: '#000000',
  },
}
SCSS
$custom: #52389c;
$custom-light: #8970ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52389c",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 255.6,
    "s": 47.17,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42818,
    "c": 0.15483,
    "h": 290.3
  },
  "luminance": 0.07022
}

Semantic roles & 50–950 ramp

primary
#52389C
secondary
#A8BA76
accent
#D751B4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #52389C

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

Preview Lab → · Contrast checker → · Palette generator →

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