#52399D#52399D

#52399D is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.1% C 0.155 H 289.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#52399D
RGBrgb(82, 57, 157)
HSLhsl(255, 47%, 42%)
HSVhsv(255, 64%, 62%)
CMYKcmyk(47.8%, 63.7%, 0%, 38.4%)
CIE-LABlab(32.16, 36.30, -50.90)
CIE-LCHlch(32.16, 62.51, 305.49°)
OKLaboklab(43.06% 0.0525 -0.1456)
OKLCHoklch(43.06% 0.155 289.8)
XYZxyz(11.0269, 7.1540, 32.6916)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52399D #849D39
analogous
#39529D #52399D #84399D
triadic
#52399D #9D5239 #399D52
tetradic
#52399D #9D3952 #849D39 #399D84
square
#52399D #9D3952 #849D39 #399D84
split-complementary
#52399D #9D8439 #529D39
monochromatic
#231843 #3B2970 #52399D #6E53C0 #9480D1

Accessibility & contrast

On white

8.64
#52399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#52399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52399D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52399D#FFFFFF#000000##FFFFFF
##52399D1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52399d;
/* rgb */ color: rgb(82, 57, 157);
/* oklch */ color: oklch(43.1% 0.155 289.8);
Tailwind
colors: {
  custom: {
    50: '#8971bb',
    500: '#52399d',
    950: '#000000',
  },
}
SCSS
$custom: #52399d;
$custom-light: #8971bb;
$custom-dark: #000000;
JSON
{
  "hex": "#52399d",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 255,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43059,
    "c": 0.15476,
    "h": 289.8
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#52399D
secondary
#AABA78
accent
#D651B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #52399D

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

Preview Lab → · Contrast checker → · Palette generator →

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