#53178A#53178A

#53178A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.173 H 301.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#53178A
RGBrgb(83, 23, 138)
HSLhsl(271, 71%, 32%)
HSVhsv(271, 83%, 54%)
CMYKcmyk(39.9%, 83.3%, 0%, 45.9%)
CIE-LABlab(24.60, 48.26, -51.52)
CIE-LCHlch(24.60, 70.59, 313.13°)
OKLaboklab(37.21% 0.0909 -0.1472)
OKLCHoklch(37.21% 0.173 301.7)
XYZxyz(8.4600, 4.2867, 24.4215)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#53178A #4E8A17
analogous
#19178A #53178A #8A1788
triadic
#53178A #8A5317 #178A53
tetradic
#53178A #8A1917 #4E8A17 #17888A
square
#53178A #8A1917 #4E8A17 #17888A
split-complementary
#53178A #888A17 #178A19
monochromatic
#140621 #330E56 #53178A #7320BE #913DDF

Accessibility & contrast

On white

11.31
#53178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#53178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #53178A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##53178A#FFFFFF#000000##FFFFFF
##53178A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#473752
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #53178a;
/* rgb */ color: rgb(83, 23, 138);
/* oklch */ color: oklch(37.2% 0.173 301.7);
Tailwind
colors: {
  custom: {
    50: '#895dad',
    500: '#53178a',
    950: '#000000',
  },
}
SCSS
$custom: #53178a;
$custom-light: #895dad;
$custom-dark: #000000;
JSON
{
  "hex": "#53178a",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 271.304,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.17302,
    "h": 301.7
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#53178A
secondary
#7CBE3F
accent
#EE3A90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #53178A

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

Preview Lab → · Contrast checker → · Palette generator →

#53178A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva