#52308F#52308F

#52308F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.149 H 295.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#52308F
RGBrgb(82, 48, 143)
HSLhsl(261, 50%, 37%)
HSVhsv(261, 66%, 56%)
CMYKcmyk(42.7%, 66.4%, 0%, 43.9%)
CIE-LABlab(29.14, 37.44, -47.24)
CIE-LCHlch(29.14, 60.27, 308.40°)
OKLaboklab(40.53% 0.064 -0.1348)
OKLCHoklch(40.53% 0.149 295.4)
XYZxyz(9.4932, 5.8907, 26.6181)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52308F #6D8F30
analogous
#303D8F #52308F #82308F
triadic
#52308F #8F5230 #308F52
tetradic
#52308F #8F303D #6D8F30 #308F82
square
#52308F #8F303D #6D8F30 #308F82
split-complementary
#52308F #8F8230 #3D8F30
monochromatic
#1D1133 #382161 #52308F #6C3FBD #8F6CCE

Accessibility & contrast

On white

9.64
#52308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#52308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52308F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52308F#FFFFFF#000000##FFFFFF
##52308F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#42465B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #52308f;
/* rgb */ color: rgb(82, 48, 143);
/* oklch */ color: oklch(40.5% 0.149 295.4);
Tailwind
colors: {
  custom: {
    50: '#886ab0',
    500: '#52308f',
    950: '#000000',
  },
}
SCSS
$custom: #52308f;
$custom-light: #886ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#52308f",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 261.474,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40531,
    "c": 0.14925,
    "h": 295.4
  },
  "luminance": 0.05891
}

Semantic roles & 50–950 ramp

primary
#52308F
secondary
#99B566
accent
#D94FA8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #52308F

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

Preview Lab → · Contrast checker → · Palette generator →

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