#531F71#531F71

#531F71 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.138 H 310.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#531F71
RGBrgb(83, 31, 113)
HSLhsl(278, 57%, 28%)
HSVhsv(278, 73%, 44%)
CMYKcmyk(26.5%, 72.6%, 0%, 55.7%)
CIE-LABlab(23.71, 38.80, -37.13)
CIE-LCHlch(23.71, 53.70, 316.26°)
OKLaboklab(35.94% 0.0891 -0.105)
OKLCHoklch(35.94% 0.138 310.3)
XYZxyz(7.0373, 4.0114, 16.0231)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F71 #3D711F
analogous
#2A1F71 #531F71 #711F66
triadic
#531F71 #71531F #1F7153
tetradic
#531F71 #712A1F #3D711F #1F6671
square
#531F71 #712A1F #3D711F #1F6671
split-complementary
#531F71 #66711F #1F712A
monochromatic
#120718 #301241 #531F71 #762CA1 #9840CB

Accessibility & contrast

On white

11.65
#531F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#531F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F71
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F71#FFFFFF#000000##FFFFFF
##531F711.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#12396F
Tritanopia (blue-blind)
#4F3145
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #531f71;
/* rgb */ color: rgb(83, 31, 113);
/* oklch */ color: oklch(35.9% 0.138 310.3);
Tailwind
colors: {
  custom: {
    50: '#875f9a',
    500: '#531f71',
    950: '#000000',
  },
}
SCSS
$custom: #531f71;
$custom-light: #875f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#531f71",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 278.049,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35941,
    "c": 0.13768,
    "h": 310.3
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#531F71
secondary
#69A547
accent
#E0487F
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #531F71

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

Preview Lab → · Contrast checker → · Palette generator →

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