#52308D#52308D

#52308D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.147 H 296.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#52308D
RGBrgb(82, 48, 141)
HSLhsl(262, 49%, 37%)
HSVhsv(262, 66%, 55%)
CMYKcmyk(41.8%, 66%, 0%, 44.7%)
CIE-LABlab(28.98, 36.87, -46.25)
CIE-LCHlch(28.98, 59.15, 308.56°)
OKLaboklab(40.37% 0.0642 -0.1319)
OKLCHoklch(40.37% 0.147 296)
XYZxyz(9.3431, 5.8306, 25.8273)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52308D #6B8D30
analogous
#303D8D #52308D #80308D
triadic
#52308D #8D5230 #308D52
tetradic
#52308D #8D303D #6B8D30 #308D80
square
#52308D #8D303D #6B8D30 #308D80
split-complementary
#52308D #8D8030 #3D8D30
monochromatic
#1D1132 #37205F #52308D #6D40BB #8F6BCD

Accessibility & contrast

On white

9.69
#52308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#52308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52308D
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52308D#FFFFFF#000000##FFFFFF
##52308D1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#43455A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52308d;
/* rgb */ color: rgb(82, 48, 141);
/* oklch */ color: oklch(40.4% 0.147 296.0);
Tailwind
colors: {
  custom: {
    50: '#876aaf',
    500: '#52308d',
    950: '#000000',
  },
}
SCSS
$custom: #52308d;
$custom-light: #876aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#52308d",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 261.935,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40371,
    "c": 0.14673,
    "h": 296
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#52308D
secondary
#97B465
accent
#D94FA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #52308D

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

Preview Lab → · Contrast checker → · Palette generator →

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