#52339D#52339D

#52339D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.163 H 291.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#52339D
RGBrgb(82, 51, 157)
HSLhsl(258, 51%, 41%)
HSVhsv(258, 68%, 62%)
CMYKcmyk(47.8%, 67.5%, 0%, 38.4%)
CIE-LABlab(30.87, 39.77, -52.99)
CIE-LCHlch(30.87, 66.25, 306.89°)
OKLaboklab(42.13% 0.059 -0.1517)
OKLCHoklch(42.13% 0.163 291.2)
XYZxyz(10.7476, 6.5954, 32.5985)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52339D #7E9D33
analogous
#33499D #52339D #87339D
triadic
#52339D #9D5233 #339D52
tetradic
#52339D #9D3349 #7E9D33 #339D87
square
#52339D #9D3349 #7E9D33 #339D87
split-complementary
#52339D #9D8733 #499D33
monochromatic
#221541 #3A246F #52339D #6D49C4 #9277D3

Accessibility & contrast

On white

9.05
#52339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#52339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52339D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52339D#FFFFFF#000000##FFFFFF
##52339D1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#3B4D63
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #52339d;
/* rgb */ color: rgb(82, 51, 157);
/* oklch */ color: oklch(42.1% 0.163 291.2);
Tailwind
colors: {
  custom: {
    50: '#896dbb',
    500: '#52339d',
    950: '#000000',
  },
}
SCSS
$custom: #52339d;
$custom-light: #896dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#52339d",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 257.547,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.16279,
    "h": 291.2
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#52339D
secondary
#A5BB70
accent
#DA4DB1
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #52339D

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

Preview Lab → · Contrast checker → · Palette generator →

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