#52309D#52309D

#52309D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.167 H 291.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#52309D
RGBrgb(82, 48, 157)
HSLhsl(259, 53%, 40%)
HSVhsv(259, 69%, 62%)
CMYKcmyk(47.8%, 69.4%, 0%, 38.4%)
CIE-LABlab(30.26, 41.44, -53.98)
CIE-LCHlch(30.26, 68.05, 307.51°)
OKLaboklab(41.69% 0.0621 -0.1546)
OKLCHoklch(41.69% 0.167 291.9)
XYZxyz(10.6207, 6.3417, 32.5562)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52309D #7B9D30
analogous
#30449D #52309D #89309D
triadic
#52309D #9D5230 #309D52
tetradic
#52309D #9D3044 #7B9D30 #309D89
square
#52309D #9D3044 #7B9D30 #309D89
split-complementary
#52309D #9D8930 #449D30
monochromatic
#21133F #3A226E #52309D #6D44C6 #9173D4

Accessibility & contrast

On white

9.26
#52309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#52309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52309D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52309D#FFFFFF#000000##FFFFFF
##52309D1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#3B4B62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #52309d;
/* rgb */ color: rgb(82, 48, 157);
/* oklch */ color: oklch(41.7% 0.167 291.9);
Tailwind
colors: {
  custom: {
    50: '#896bbb',
    500: '#52309d',
    950: '#000000',
  },
}
SCSS
$custom: #52309d;
$custom-light: #896bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#52309d",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 258.716,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4169,
    "c": 0.16663,
    "h": 291.9
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#52309D
secondary
#A3BC6D
accent
#DD4BAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #52309D

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

Preview Lab → · Contrast checker → · Palette generator →

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