#531872#531872

#531872 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.148 H 310.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#531872
RGBrgb(83, 24, 114)
HSLhsl(279, 65%, 27%)
HSVhsv(279, 79%, 45%)
CMYKcmyk(27.2%, 78.9%, 0%, 55.3%)
CIE-LABlab(22.68, 42.17, -39.44)
CIE-LCHlch(22.68, 57.73, 316.92°)
OKLaboklab(35.24% 0.0964 -0.1117)
OKLCHoklch(35.24% 0.148 310.8)
XYZxyz(6.9306, 3.7073, 16.2668)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531872 #377218
analogous
#261872 #531872 #721864
triadic
#531872 #725318 #187253
tetradic
#531872 #722618 #377218 #186472
square
#531872 #722618 #377218 #186472
split-complementary
#531872 #647218 #187226
monochromatic
#120519 #2E0D3F #531872 #7823A5 #9C31D4

Accessibility & contrast

On white

12.06
#531872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#531872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531872
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531872#FFFFFF#000000##FFFFFF
##5318721.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#043770
Tritanopia (blue-blind)
#4F2D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #531872;
/* rgb */ color: rgb(83, 24, 114);
/* oklch */ color: oklch(35.2% 0.148 310.8);
Tailwind
colors: {
  custom: {
    50: '#875c9b',
    500: '#531872',
    950: '#000000',
  },
}
SCSS
$custom: #531872;
$custom-light: #875c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#531872",
  "rgb": {
    "r": 83,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 279.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35235,
    "c": 0.14759,
    "h": 310.8
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#531872
secondary
#63A73E
accent
#E8407A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531872

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

Preview Lab → · Contrast checker → · Palette generator →

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