#52147E#52147E

#52147E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.163 H 305.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#52147E
RGBrgb(82, 20, 126)
HSLhsl(275, 73%, 29%)
HSVhsv(275, 84%, 49%)
CMYKcmyk(34.9%, 84.1%, 0%, 50.6%)
CIE-LABlab(23.00, 46.30, -46.59)
CIE-LCHlch(23.00, 65.68, 314.83°)
OKLaboklab(35.74% 0.0954 -0.1327)
OKLCHoklch(35.74% 0.163 305.7)
XYZxyz(7.4949, 3.8006, 20.0734)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52147E #407E14
analogous
#1D147E #52147E #7E1475
triadic
#52147E #7E5214 #147E52
tetradic
#52147E #7E1D14 #407E14 #14757E
square
#52147E #7E1D14 #407E14 #14757E
split-complementary
#52147E #757E14 #147E1D
monochromatic
#11041A #300C49 #52147E #741CB3 #952EDE

Accessibility & contrast

On white

11.93
#52147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52147E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52147E#FFFFFF#000000##FFFFFF
##52147E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#4A314A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52147e;
/* rgb */ color: rgb(82, 20, 126);
/* oklch */ color: oklch(35.7% 0.163 305.7);
Tailwind
colors: {
  custom: {
    50: '#885ba4',
    500: '#52147e',
    950: '#000000',
  },
}
SCSS
$custom: #52147e;
$custom-light: #885ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#52147e",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 275.094,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35742,
    "c": 0.16349,
    "h": 305.7
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#52147E
secondary
#6DB33A
accent
#EF3884
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52147E

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

Preview Lab → · Contrast checker → · Palette generator →

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