#52339A#52339A

#52339A is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.159 H 291.9°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#52339A
RGBrgb(82, 51, 154)
HSLhsl(258, 50%, 40%)
HSVhsv(258, 67%, 60%)
CMYKcmyk(46.8%, 66.9%, 0%, 39.6%)
CIE-LABlab(30.63, 38.90, -51.56)
CIE-LCHlch(30.63, 64.58, 307.03°)
OKLaboklab(41.88% 0.0594 -0.1475)
OKLCHoklch(41.88% 0.159 291.9)
XYZxyz(10.4946, 6.4942, 31.2661)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52339A #7B9A33
analogous
#33489A #52339A #85339A
triadic
#52339A #9A5233 #339A52
tetradic
#52339A #9A3348 #7B9A33 #339A85
square
#52339A #9A3348 #7B9A33 #339A85
split-complementary
#52339A #9A8533 #489A33
monochromatic
#21153E #3A246C #52339A #6D48C2 #9176D2

Accessibility & contrast

On white

9.13
#52339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#52339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52339A
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52339A#FFFFFF#000000##FFFFFF
##52339A1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#3C4C62
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #52339a;
/* rgb */ color: rgb(82, 51, 154);
/* oklch */ color: oklch(41.9% 0.159 291.9);
Tailwind
colors: {
  custom: {
    50: '#896db9',
    500: '#52339a',
    950: '#000000',
  },
}
SCSS
$custom: #52339a;
$custom-light: #896db9;
$custom-dark: #000000;
JSON
{
  "hex": "#52339a",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 258.058,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.15902,
    "h": 291.9
  },
  "luminance": 0.06495
}

Semantic roles & 50–950 ramp

primary
#52339A
secondary
#A3BA6F
accent
#DA4EB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #52339A

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

Preview Lab → · Contrast checker → · Palette generator →

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