#531F72#531F72

#531F72 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.139 H 309.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#531F72
RGBrgb(83, 31, 114)
HSLhsl(278, 57%, 28%)
HSVhsv(278, 73%, 45%)
CMYKcmyk(27.2%, 72.8%, 0%, 55.3%)
CIE-LABlab(23.78, 39.04, -37.65)
CIE-LCHlch(23.78, 54.23, 316.04°)
OKLaboklab(36.02% 0.0889 -0.1065)
OKLCHoklch(36.02% 0.139 309.9)
XYZxyz(7.0939, 4.0340, 16.3213)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F72 #3E721F
analogous
#291F72 #531F72 #721F67
triadic
#531F72 #72531F #1F7253
tetradic
#531F72 #72291F #3E721F #1F6772
square
#531F72 #72291F #3E721F #1F6772
split-complementary
#531F72 #67721F #1F7229
monochromatic
#120718 #301242 #531F72 #762CA2 #9740CB

Accessibility & contrast

On white

11.62
#531F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#531F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F72
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F72#FFFFFF#000000##FFFFFF
##531F721.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#103970
Tritanopia (blue-blind)
#4F3146
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #531f72;
/* rgb */ color: rgb(83, 31, 114);
/* oklch */ color: oklch(36.0% 0.139 309.9);
Tailwind
colors: {
  custom: {
    50: '#875f9b',
    500: '#531f72',
    950: '#000000',
  },
}
SCSS
$custom: #531f72;
$custom-light: #875f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#531f72",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 277.59,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.13876,
    "h": 309.9
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#531F72
secondary
#6AA647
accent
#E04781
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #531F72

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

Preview Lab → · Contrast checker → · Palette generator →

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