#531F7E#531F7E

#531F7E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.152 H 304.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#531F7E
RGBrgb(83, 31, 126)
HSLhsl(273, 61%, 31%)
HSVhsv(273, 75%, 49%)
CMYKcmyk(34.1%, 75.4%, 0%, 50.6%)
CIE-LABlab(24.72, 41.97, -43.78)
CIE-LCHlch(24.72, 60.65, 313.79°)
OKLaboklab(36.98% 0.087 -0.1245)
OKLCHoklch(36.98% 0.152 304.9)
XYZxyz(7.8223, 4.3254, 20.1574)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F7E #4A7E1F
analogous
#231F7E #531F7E #7E1F79
triadic
#531F7E #7E531F #1F7E53
tetradic
#531F7E #7E231F #4A7E1F #1F797E
square
#531F7E #7E231F #4A7E1F #1F797E
split-complementary
#531F7E #797E1F #1F7E23
monochromatic
#12071C #33134D #531F7E #732BAF #9246D1

Accessibility & contrast

On white

11.26
#531F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531F7E
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F7E#FFFFFF#000000##FFFFFF
##531F7E1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #531f7e;
/* rgb */ color: rgb(83, 31, 126);
/* oklch */ color: oklch(37.0% 0.152 304.9);
Tailwind
colors: {
  custom: {
    50: '#8860a4',
    500: '#531f7e',
    950: '#000000',
  },
}
SCSS
$custom: #531f7e;
$custom-light: #8860a4;
$custom-dark: #000000;
JSON
{
  "hex": "#531f7e",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 272.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36979,
    "c": 0.1519,
    "h": 304.9
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#531F7E
secondary
#77B148
accent
#E4448C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #531F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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