#52308B#52308B

#52308B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.144 H 296.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#52308B
RGBrgb(82, 48, 139)
HSLhsl(262, 49%, 37%)
HSVhsv(262, 65%, 55%)
CMYKcmyk(41%, 65.5%, 0%, 45.5%)
CIE-LABlab(28.83, 36.31, -45.26)
CIE-LCHlch(28.83, 58.02, 308.74°)
OKLaboklab(40.21% 0.0644 -0.129)
OKLCHoklch(40.21% 0.144 296.5)
XYZxyz(9.1956, 5.7717, 25.0506)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52308B #698B30
analogous
#303B8B #52308B #80308B
triadic
#52308B #8B5230 #308B52
tetradic
#52308B #8B303B #698B30 #308B80
square
#52308B #8B303B #698B30 #308B80
split-complementary
#52308B #8B8030 #3B8B30
monochromatic
#1C1130 #37205E #52308B #6D40B8 #8E6ACC

Accessibility & contrast

On white

9.75
#52308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#52308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52308B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52308B#FFFFFF#000000##FFFFFF
##52308B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#444559
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52308b;
/* rgb */ color: rgb(82, 48, 139);
/* oklch */ color: oklch(40.2% 0.144 296.5);
Tailwind
colors: {
  custom: {
    50: '#876aae',
    500: '#52308b',
    950: '#000000',
  },
}
SCSS
$custom: #52308b;
$custom-light: #876aae;
$custom-dark: #000000;
JSON
{
  "hex": "#52308b",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 262.418,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40213,
    "c": 0.1442,
    "h": 296.5
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#52308B
secondary
#95B364
accent
#D850A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52308B

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

Preview Lab → · Contrast checker → · Palette generator →

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