#531F96#531F96

#531F96 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.178 H 297.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#531F96
RGBrgb(83, 31, 150)
HSLhsl(266, 66%, 35%)
HSVhsv(266, 79%, 59%)
CMYKcmyk(44.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(26.79, 48.08, -55.36)
CIE-LCHlch(26.79, 73.32, 310.97°)
OKLaboklab(39.08% 0.0809 -0.1585)
OKLCHoklch(39.08% 0.178 297)
XYZxyz(9.5608, 5.0208, 29.3136)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F96 #62961F
analogous
#1F2796 #531F96 #8E1F96
triadic
#531F96 #96531F #1F9653
tetradic
#531F96 #961F27 #62961F #1F968E
square
#531F96 #961F27 #62961F #1F968E
split-complementary
#531F96 #968E1F #27961F
monochromatic
#1B0A31 #371563 #531F96 #6F29C9 #8F54DC

Accessibility & contrast

On white

10.48
#531F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#531F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F96
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F96#FFFFFF#000000##FFFFFF
##531F961.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#41405A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #531f96;
/* rgb */ color: rgb(83, 31, 150);
/* oklch */ color: oklch(39.1% 0.178 297.0);
Tailwind
colors: {
  custom: {
    50: '#8a61b6',
    500: '#531f96',
    950: '#000000',
  },
}
SCSS
$custom: #531f96;
$custom-light: #8a61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#531f96",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 266.218,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39079,
    "c": 0.17799,
    "h": 297
  },
  "luminance": 0.05021
}

Semantic roles & 50–950 ramp

primary
#531F96
secondary
#8FBF52
accent
#E93F9F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #531F96

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

Preview Lab → · Contrast checker → · Palette generator →

#531F96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva