#52338D#52338D

#52338D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.142 H 295.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#52338D
RGBrgb(82, 51, 141)
HSLhsl(261, 47%, 38%)
HSVhsv(261, 64%, 55%)
CMYKcmyk(41.8%, 63.8%, 0%, 44.7%)
CIE-LABlab(29.62, 35.14, -45.21)
CIE-LCHlch(29.62, 57.26, 307.86°)
OKLaboklab(40.84% 0.0607 -0.1289)
OKLCHoklch(40.84% 0.142 295.2)
XYZxyz(9.4700, 6.0844, 25.8696)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52338D #6E8D33
analogous
#33418D #52338D #7F338D
triadic
#52338D #8D5233 #338D52
tetradic
#52338D #8D3341 #6E8D33 #338D7F
square
#52338D #8D3341 #6E8D33 #338D7F
split-complementary
#52338D #8D7F33 #418D33
monochromatic
#1E1233 #382360 #52338D #6C43BA #8F6FCB

Accessibility & contrast

On white

9.47
#52338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#52338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52338D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52338D#FFFFFF#000000##FFFFFF
##52338D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#43475B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #52338d;
/* rgb */ color: rgb(82, 51, 141);
/* oklch */ color: oklch(40.8% 0.142 295.2);
Tailwind
colors: {
  custom: {
    50: '#876caf',
    500: '#52338d',
    950: '#000000',
  },
}
SCSS
$custom: #52338d;
$custom-light: #876caf;
$custom-dark: #000000;
JSON
{
  "hex": "#52338d",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 260.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.14243,
    "h": 295.2
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#52338D
secondary
#99B369
accent
#D751A9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #52338D

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

Preview Lab → · Contrast checker → · Palette generator →

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