#531F8F#531F8F

#531F8F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.170 H 299.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#531F8F
RGBrgb(83, 31, 143)
HSLhsl(268, 64%, 34%)
HSVhsv(268, 78%, 56%)
CMYKcmyk(42%, 78.3%, 0%, 43.9%)
CIE-LABlab(26.16, 46.28, -52.07)
CIE-LCHlch(26.16, 69.66, 311.63°)
OKLaboklab(38.44% 0.0829 -0.1489)
OKLCHoklch(38.44% 0.17 299.1)
XYZxyz(9.0139, 4.8020, 26.4333)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F8F #5B8F1F
analogous
#1F238F #531F8F #8B1F8F
triadic
#531F8F #8F531F #1F8F53
tetradic
#531F8F #8F1F23 #5B8F1F #1F8F8B
square
#531F8F #8F1F23 #5B8F1F #1F8F8B
split-complementary
#531F8F #8F8B1F #238F1F
monochromatic
#19092A #36145D #531F8F #702AC1 #8F4FD9

Accessibility & contrast

On white

10.71
#531F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#531F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F8F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F8F#FFFFFF#000000##FFFFFF
##531F8F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#443D56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #531f8f;
/* rgb */ color: rgb(83, 31, 143);
/* oklch */ color: oklch(38.4% 0.170 299.1);
Tailwind
colors: {
  custom: {
    50: '#8a61b1',
    500: '#531f8f',
    950: '#000000',
  },
}
SCSS
$custom: #531f8f;
$custom-light: #8a61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#531f8f",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 267.857,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.17041,
    "h": 299.1
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#531F8F
secondary
#89BC4E
accent
#E7409A
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #531F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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