#531878#531878

#531878 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.154 H 308.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#531878
RGBrgb(83, 24, 120)
HSLhsl(277, 67%, 28%)
HSVhsv(277, 80%, 47%)
CMYKcmyk(30.8%, 80%, 0%, 52.9%)
CIE-LABlab(23.16, 43.56, -42.49)
CIE-LCHlch(23.16, 60.86, 315.71°)
OKLaboklab(35.73% 0.0951 -0.1207)
OKLCHoklch(35.73% 0.154 308.2)
XYZxyz(7.2834, 3.8485, 18.1248)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531878 #3D7818
analogous
#231878 #531878 #78186D
triadic
#531878 #785318 #187853
tetradic
#531878 #782318 #3D7818 #186D78
square
#531878 #782318 #3D7818 #186D78
split-complementary
#531878 #6D7818 #187823
monochromatic
#12051A #300E45 #531878 #7622AB #9834D6

Accessibility & contrast

On white

11.87
#531878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#531878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531878
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531878#FFFFFF#000000##FFFFFF
##5318781.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #531878;
/* rgb */ color: rgb(83, 24, 120);
/* oklch */ color: oklch(35.7% 0.154 308.2);
Tailwind
colors: {
  custom: {
    50: '#885ca0',
    500: '#531878',
    950: '#000000',
  },
}
SCSS
$custom: #531878;
$custom-light: #885ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#531878",
  "rgb": {
    "r": 83,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 276.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35728,
    "c": 0.1537,
    "h": 308.2
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#531878
secondary
#69AD3F
accent
#EA3E80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #531878

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

Preview Lab → · Contrast checker → · Palette generator →

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