#52309E#52309E

#52309E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.168 H 291.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#52309E
RGBrgb(82, 48, 158)
HSLhsl(259, 53%, 40%)
HSVhsv(259, 70%, 62%)
CMYKcmyk(48.1%, 69.6%, 0%, 38%)
CIE-LABlab(30.34, 41.73, -54.45)
CIE-LCHlch(30.34, 68.60, 307.46°)
OKLaboklab(41.78% 0.0619 -0.156)
OKLCHoklch(41.78% 0.168 291.6)
XYZxyz(10.7065, 6.3760, 33.0077)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52309E #7C9E30
analogous
#30459E #52309E #89309E
triadic
#52309E #9E5230 #309E52
tetradic
#52309E #9E3045 #7C9E30 #309E89
square
#52309E #9E3045 #7C9E30 #309E89
split-complementary
#52309E #9E8930 #459E30
monochromatic
#211340 #3A226F #52309E #6D45C6 #9274D5

Accessibility & contrast

On white

9.23
#52309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#52309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52309E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52309E#FFFFFF#000000##FFFFFF
##52309E1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#3A4C63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #52309e;
/* rgb */ color: rgb(82, 48, 158);
/* oklch */ color: oklch(41.8% 0.168 291.6);
Tailwind
colors: {
  custom: {
    50: '#8a6bbc',
    500: '#52309e',
    950: '#000000',
  },
}
SCSS
$custom: #52309e;
$custom-light: #8a6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#52309e",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 258.545,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.16785,
    "h": 291.6
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#52309E
secondary
#A4BD6D
accent
#DD4BB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #52309E

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

Preview Lab → · Contrast checker → · Palette generator →

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