#531F7F#531F7F

#531F7F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.153 H 304.5°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#531F7F
RGBrgb(83, 31, 127)
HSLhsl(273, 61%, 31%)
HSVhsv(273, 76%, 50%)
CMYKcmyk(34.6%, 75.6%, 0%, 50.2%)
CIE-LABlab(24.80, 42.22, -44.28)
CIE-LCHlch(24.80, 61.19, 313.64°)
OKLaboklab(37.06% 0.0867 -0.126)
OKLCHoklch(37.06% 0.153 304.5)
XYZxyz(7.8872, 4.3513, 20.4989)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F7F #4B7F1F
analogous
#231F7F #531F7F #7F1F7B
triadic
#531F7F #7F531F #1F7F53
tetradic
#531F7F #7F231F #4B7F1F #1F7B7F
square
#531F7F #7F231F #4B7F1F #1F7B7F
split-complementary
#531F7F #7B7F1F #1F7F23
monochromatic
#13071D #33134E #531F7F #732BB0 #9246D2

Accessibility & contrast

On white

11.23
#531F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#531F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F7F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F7F#FFFFFF#000000##FFFFFF
##531F7F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#4B364D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #531f7f;
/* rgb */ color: rgb(83, 31, 127);
/* oklch */ color: oklch(37.1% 0.153 304.5);
Tailwind
colors: {
  custom: {
    50: '#8860a5',
    500: '#531f7f',
    950: '#000000',
  },
}
SCSS
$custom: #531f7f;
$custom-light: #8860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#531f7f",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 272.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37061,
    "c": 0.15299,
    "h": 304.5
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#531F7F
secondary
#78B248
accent
#E4448D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #531F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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