#52188F#52188F

#52188F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.177 H 299.4°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#52188F
RGBrgb(82, 24, 143)
HSLhsl(269, 71%, 33%)
HSVhsv(269, 83%, 56%)
CMYKcmyk(42.7%, 83.2%, 0%, 43.9%)
CIE-LABlab(25.05, 48.96, -53.90)
CIE-LCHlch(25.05, 72.82, 312.25°)
OKLaboklab(37.64% 0.087 -0.1543)
OKLCHoklch(37.64% 0.177 299.4)
XYZxyz(8.7630, 4.4302, 26.3747)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52188F #558F18
analogous
#18198F #52188F #8D188F
triadic
#52188F #8F5218 #188F52
tetradic
#52188F #8F1819 #558F18 #188F8D
square
#52188F #8F1819 #558F18 #188F8D
split-complementary
#52188F #8F8D18 #198F18
monochromatic
#160626 #340F5B #52188F #7021C3 #8F42DF

Accessibility & contrast

On white

11.13
#52188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52188F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52188F#FFFFFF#000000##FFFFFF
##52188F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#433A55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52188f;
/* rgb */ color: rgb(82, 24, 143);
/* oklch */ color: oklch(37.6% 0.177 299.4);
Tailwind
colors: {
  custom: {
    50: '#895db1',
    500: '#52188f',
    950: '#000000',
  },
}
SCSS
$custom: #52188f;
$custom-light: #895db1;
$custom-dark: #000000;
JSON
{
  "hex": "#52188f",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 269.244,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.17708,
    "h": 299.4
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#52188F
secondary
#83C043
accent
#EE3A96
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #52188F

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

Preview Lab → · Contrast checker → · Palette generator →

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