#52137F#52137F

#52137F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.165 H 305.4°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#52137F
RGBrgb(82, 19, 127)
HSLhsl(275, 74%, 29%)
HSVhsv(275, 85%, 50%)
CMYKcmyk(35.4%, 85%, 0%, 50.2%)
CIE-LABlab(22.97, 46.88, -47.27)
CIE-LCHlch(22.97, 66.58, 314.77°)
OKLaboklab(35.75% 0.0959 -0.1347)
OKLCHoklch(35.75% 0.165 305.4)
XYZxyz(7.5424, 3.7919, 20.4091)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52137F #407F13
analogous
#1C137F #52137F #7F1376
triadic
#52137F #7F5213 #137F52
tetradic
#52137F #7F1C13 #407F13 #13767F
square
#52137F #7F1C13 #407F13 #13767F
split-complementary
#52137F #767F13 #137F1C
monochromatic
#11041B #300B4A #52137F #741BB4 #952DE0

Accessibility & contrast

On white

11.94
#52137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52137F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52137F#FFFFFF#000000##FFFFFF
##52137F1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#49314A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52137f;
/* rgb */ color: rgb(82, 19, 127);
/* oklch */ color: oklch(35.7% 0.165 305.4);
Tailwind
colors: {
  custom: {
    50: '#885aa5',
    500: '#52137f',
    950: '#000000',
  },
}
SCSS
$custom: #52137f;
$custom-light: #885aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#52137f",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 275,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35748,
    "c": 0.16537,
    "h": 305.4
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#52137F
secondary
#6DB439
accent
#F13784
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52137F

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

Preview Lab → · Contrast checker → · Palette generator →

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