#52318E#52318E

#52318E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.147 H 295.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#52318E
RGBrgb(82, 49, 142)
HSLhsl(261, 49%, 37%)
HSVhsv(261, 65%, 56%)
CMYKcmyk(42.3%, 65.5%, 0%, 44.3%)
CIE-LABlab(29.27, 36.58, -46.40)
CIE-LCHlch(29.27, 59.09, 308.25°)
OKLaboklab(40.6% 0.063 -0.1324)
OKLCHoklch(40.6% 0.147 295.4)
XYZxyz(9.4592, 5.9432, 26.2347)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52318E #6D8E31
analogous
#313F8E #52318E #80318E
triadic
#52318E #8E5231 #318E52
tetradic
#52318E #8E313F #6D8E31 #318E80
square
#52318E #8E313F #6D8E31 #318E80
split-complementary
#52318E #8E8031 #3F8E31
monochromatic
#1D1233 #382161 #52318E #6C41BB #8F6DCD

Accessibility & contrast

On white

9.60
#52318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#52318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52318E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52318E#FFFFFF#000000##FFFFFF
##52318E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#42465B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #52318e;
/* rgb */ color: rgb(82, 49, 142);
/* oklch */ color: oklch(40.6% 0.147 295.4);
Tailwind
colors: {
  custom: {
    50: '#886bb0',
    500: '#52318e',
    950: '#000000',
  },
}
SCSS
$custom: #52318e;
$custom-light: #886bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#52318e",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 261.29,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40603,
    "c": 0.14658,
    "h": 295.4
  },
  "luminance": 0.05943
}

Semantic roles & 50–950 ramp

primary
#52318E
secondary
#99B467
accent
#D850A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #52318E

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

Preview Lab → · Contrast checker → · Palette generator →

#52318E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva