#52389D#52389D

#52389D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.9% C 0.156 H 290.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#52389D
RGBrgb(82, 56, 157)
HSLhsl(255, 47%, 42%)
HSVhsv(255, 64%, 62%)
CMYKcmyk(47.8%, 64.3%, 0%, 38.4%)
CIE-LABlab(31.93, 36.89, -51.26)
CIE-LCHlch(31.93, 63.15, 305.74°)
OKLaboklab(42.9% 0.0536 -0.1466)
OKLCHoklch(42.9% 0.156 290.1)
XYZxyz(10.9779, 7.0561, 32.6753)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52389D #839D38
analogous
#38509D #52389D #85389D
triadic
#52389D #9D5238 #389D52
tetradic
#52389D #9D3850 #839D38 #389D85
square
#52389D #9D3850 #839D38 #389D85
split-complementary
#52389D #9D8538 #509D38
monochromatic
#231843 #3A2870 #52389D #6E51C1 #947ED1

Accessibility & contrast

On white

8.71
#52389D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#52389D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52389D
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52389D#FFFFFF#000000##FFFFFF
##52389D1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#3A5065
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #52389d;
/* rgb */ color: rgb(82, 56, 157);
/* oklch */ color: oklch(42.9% 0.156 290.1);
Tailwind
colors: {
  custom: {
    50: '#8970bb',
    500: '#52389d',
    950: '#000000',
  },
}
SCSS
$custom: #52389d;
$custom-light: #8970bb;
$custom-dark: #000000;
JSON
{
  "hex": "#52389d",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 157
  },
  "hsl": {
    "h": 255.446,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42898,
    "c": 0.15613,
    "h": 290.1
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #52389D

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

Preview Lab → · Contrast checker → · Palette generator →

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