#52138E#52138E

#52138E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.180 H 300.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#52138E
RGBrgb(82, 19, 142)
HSLhsl(271, 76%, 32%)
HSVhsv(271, 87%, 56%)
CMYKcmyk(42.3%, 86.6%, 0%, 44.3%)
CIE-LABlab(24.36, 50.44, -54.40)
CIE-LCHlch(24.36, 74.19, 312.84°)
OKLaboklab(37.14% 0.0907 -0.1557)
OKLCHoklch(37.14% 0.18 300.2)
XYZxyz(8.5938, 4.2125, 25.9463)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52138E #4F8E13
analogous
#15138E #52138E #8E138D
triadic
#52138E #8E5213 #138E52
tetradic
#52138E #8E1513 #4F8E13 #138D8E
square
#52138E #8E1513 #4F8E13 #138D8E
split-complementary
#52138E #8D8E13 #138E15
monochromatic
#140522 #330C58 #52138E #711AC4 #9037E4

Accessibility & contrast

On white

11.40
#52138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#52138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52138E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52138E#FFFFFF#000000##FFFFFF
##52138E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#443853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52138e;
/* rgb */ color: rgb(82, 19, 142);
/* oklch */ color: oklch(37.1% 0.180 300.2);
Tailwind
colors: {
  custom: {
    50: '#895bb0',
    500: '#52138e',
    950: '#000000',
  },
}
SCSS
$custom: #52138e;
$custom-light: #895bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#52138e",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 270.732,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37135,
    "c": 0.18017,
    "h": 300.2
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#52138E
secondary
#7DC23B
accent
#F33592
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #52138E

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

Preview Lab → · Contrast checker → · Palette generator →

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