#52196F#52196F

#52196F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.143 H 311.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#52196F
RGBrgb(82, 25, 111)
HSLhsl(280, 63%, 27%)
HSVhsv(280, 77%, 44%)
CMYKcmyk(26.1%, 77.5%, 0%, 56.5%)
CIE-LABlab(22.43, 40.84, -37.91)
CIE-LCHlch(22.43, 55.72, 317.14°)
OKLaboklab(34.95% 0.0946 -0.1073)
OKLCHoklch(34.95% 0.143 311.4)
XYZxyz(6.6960, 3.6370, 15.3851)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52196F #366F19
analogous
#27196F #52196F #6F1961
triadic
#52196F #6F5219 #196F52
tetradic
#52196F #6F2719 #366F19 #19616F
square
#52196F #6F2719 #366F19 #19616F
split-complementary
#52196F #616F19 #196F27
monochromatic
#120619 #2D0E3D #52196F #7724A1 #9B32D1

Accessibility & contrast

On white

12.16
#52196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#52196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52196F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52196F#FFFFFF#000000##FFFFFF
##52196F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#0A376D
Tritanopia (blue-blind)
#4E2D43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52196f;
/* rgb */ color: rgb(82, 25, 111);
/* oklch */ color: oklch(35.0% 0.143 311.4);
Tailwind
colors: {
  custom: {
    50: '#865c99',
    500: '#52196f',
    950: '#000000',
  },
}
SCSS
$custom: #52196f;
$custom-light: #865c99;
$custom-dark: #000000;
JSON
{
  "hex": "#52196f",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 279.767,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34954,
    "c": 0.14299,
    "h": 311.4
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#52196F
secondary
#61A43F
accent
#E64279
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52196F

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

Preview Lab → · Contrast checker → · Palette generator →

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