#531978#531978

#531978 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.153 H 308.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#531978
RGBrgb(83, 25, 120)
HSLhsl(277, 66%, 28%)
HSVhsv(277, 79%, 47%)
CMYKcmyk(30.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(23.31, 43.16, -42.26)
CIE-LCHlch(23.31, 60.41, 315.60°)
OKLaboklab(35.83% 0.0942 -0.12)
OKLCHoklch(35.83% 0.153 308.1)
XYZxyz(7.3044, 3.8904, 18.1318)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531978 #3E7819
analogous
#241978 #531978 #78196D
triadic
#531978 #785319 #197853
tetradic
#531978 #782419 #3E7819 #196D78
square
#531978 #782419 #3E7819 #196D78
split-complementary
#531978 #6D7819 #197824
monochromatic
#120519 #300E45 #531978 #7624AB #9736D5

Accessibility & contrast

On white

11.81
#531978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#531978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531978
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531978#FFFFFF#000000##FFFFFF
##5319781.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#4D3048
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #531978;
/* rgb */ color: rgb(83, 25, 120);
/* oklch */ color: oklch(35.8% 0.153 308.1);
Tailwind
colors: {
  custom: {
    50: '#885da0',
    500: '#531978',
    950: '#000000',
  },
}
SCSS
$custom: #531978;
$custom-light: #885da0;
$custom-dark: #000000;
JSON
{
  "hex": "#531978",
  "rgb": {
    "r": 83,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 276.632,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.15259,
    "h": 308.1
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#531978
secondary
#6AAD40
accent
#E83F81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #531978

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

Preview Lab → · Contrast checker → · Palette generator →

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