#531796#531796

#531796 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.185 H 297.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#531796
RGBrgb(83, 23, 150)
HSLhsl(268, 73%, 34%)
HSVhsv(268, 85%, 59%)
CMYKcmyk(44.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(25.72, 51.19, -57.11)
CIE-LCHlch(25.72, 76.70, 311.87°)
OKLaboklab(38.34% 0.0868 -0.1636)
OKLCHoklch(38.34% 0.185 297.9)
XYZxyz(9.3773, 4.6536, 29.2524)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531796 #5A9617
analogous
#171B96 #531796 #931796
triadic
#531796 #965317 #179653
tetradic
#531796 #96171B #5A9617 #179693
square
#531796 #96171B #5A9617 #179693
split-complementary
#531796 #969317 #1B9617
monochromatic
#18072C #360F61 #531796 #701FCB #8F45E2

Accessibility & contrast

On white

10.88
#531796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#531796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531796
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531796#FFFFFF#000000##FFFFFF
##5317961.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#413D59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #531796;
/* rgb */ color: rgb(83, 23, 150);
/* oklch */ color: oklch(38.3% 0.185 297.9);
Tailwind
colors: {
  custom: {
    50: '#8b5eb6',
    500: '#531796',
    950: '#000000',
  },
}
SCSS
$custom: #531796;
$custom-light: #8b5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#531796",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 268.346,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38337,
    "c": 0.18521,
    "h": 297.9
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#531796
secondary
#88C345
accent
#F03899
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #531796

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

Preview Lab → · Contrast checker → · Palette generator →

#531796 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva