#531F97#531F97

#531F97 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.179 H 296.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#531F97
RGBrgb(83, 31, 151)
HSLhsl(266, 66%, 36%)
HSVhsv(266, 79%, 59%)
CMYKcmyk(45%, 79.5%, 0%, 40.8%)
CIE-LABlab(26.89, 48.34, -55.82)
CIE-LCHlch(26.89, 73.84, 310.89°)
OKLaboklab(39.17% 0.0806 -0.1599)
OKLCHoklch(39.17% 0.179 296.7)
XYZxyz(9.6417, 5.0531, 29.7395)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F97 #63971F
analogous
#1F2797 #531F97 #8F1F97
triadic
#531F97 #97531F #1F9753
tetradic
#531F97 #971F27 #63971F #1F978F
square
#531F97 #971F27 #63971F #1F978F
split-complementary
#531F97 #978F1F #27971F
monochromatic
#1B0A31 #371564 #531F97 #6F29CA #8F54DC

Accessibility & contrast

On white

10.44
#531F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#531F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F97
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F97#FFFFFF#000000##FFFFFF
##531F971.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#41405B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #531f97;
/* rgb */ color: rgb(83, 31, 151);
/* oklch */ color: oklch(39.2% 0.179 296.7);
Tailwind
colors: {
  custom: {
    50: '#8b61b7',
    500: '#531f97',
    950: '#000000',
  },
}
SCSS
$custom: #531f97;
$custom-light: #8b61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#531f97",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 266,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39171,
    "c": 0.17907,
    "h": 296.7
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#531F97
secondary
#90BF52
accent
#E93F9F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #531F97

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

Preview Lab → · Contrast checker → · Palette generator →

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