#52398D#52398D

#52398D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.134 H 293.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#52398D
RGBrgb(82, 57, 141)
HSLhsl(258, 42%, 39%)
HSVhsv(258, 60%, 55%)
CMYKcmyk(41.8%, 59.6%, 0%, 44.7%)
CIE-LABlab(30.98, 31.55, -43.02)
CIE-LCHlch(30.98, 53.35, 306.26°)
OKLaboklab(41.83% 0.0533 -0.1224)
OKLCHoklch(41.83% 0.134 293.5)
XYZxyz(9.7492, 6.6429, 25.9627)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52398D #748D39
analogous
#394A8D #52398D #7C398D
triadic
#52398D #8D5239 #398D52
tetradic
#52398D #8D394A #748D39 #398D7C
square
#52398D #8D394A #748D39 #398D7C
split-complementary
#52398D #8D7C39 #4A8D39
monochromatic
#1F1636 #392761 #52398D #6C4CB7 #9078C8

Accessibility & contrast

On white

9.02
#52398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#52398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52398D
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52398D#FFFFFF#000000##FFFFFF
##52398D1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A90
Deuteranopia (green-blind)
#11478B
Tritanopia (blue-blind)
#424B5D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #52398d;
/* rgb */ color: rgb(82, 57, 141);
/* oklch */ color: oklch(41.8% 0.134 293.5);
Tailwind
colors: {
  custom: {
    50: '#8770af',
    500: '#52398d',
    950: '#000000',
  },
}
SCSS
$custom: #52398d;
$custom-light: #8770af;
$custom-dark: #000000;
JSON
{
  "hex": "#52398d",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 257.857,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41827,
    "c": 0.13352,
    "h": 293.5
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#52398D
secondary
#9EB270
accent
#D256AD
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #52398D

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

Preview Lab → · Contrast checker → · Palette generator →

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