#531F7D#531F7D

#531F7D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.151 H 305.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#531F7D
RGBrgb(83, 31, 125)
HSLhsl(273, 60%, 31%)
HSVhsv(273, 75%, 49%)
CMYKcmyk(33.6%, 75.2%, 0%, 51%)
CIE-LABlab(24.64, 41.73, -43.28)
CIE-LCHlch(24.64, 60.12, 313.95°)
OKLaboklab(36.9% 0.0871 -0.1231)
OKLCHoklch(36.9% 0.151 305.3)
XYZxyz(7.7581, 4.2997, 19.8193)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F7D #497D1F
analogous
#241F7D #531F7D #7D1F78
triadic
#531F7D #7D531F #1F7D53
tetradic
#531F7D #7D241F #497D1F #1F787D
square
#531F7D #7D241F #497D1F #1F787D
split-complementary
#531F7D #787D1F #1F7D24
monochromatic
#12071B #32134C #531F7D #742BAE #9345D1

Accessibility & contrast

On white

11.29
#531F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#531F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F7D
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F7D#FFFFFF#000000##FFFFFF
##531F7D1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#4B354C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #531f7d;
/* rgb */ color: rgb(83, 31, 125);
/* oklch */ color: oklch(36.9% 0.151 305.3);
Tailwind
colors: {
  custom: {
    50: '#8860a3',
    500: '#531f7d',
    950: '#000000',
  },
}
SCSS
$custom: #531f7d;
$custom-light: #8860a3;
$custom-dark: #000000;
JSON
{
  "hex": "#531f7d",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 273.191,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36896,
    "c": 0.1508,
    "h": 305.3
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#531F7D
secondary
#76B048
accent
#E3448B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #531F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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