#531772#531772

#531772 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.149 H 310.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#531772
RGBrgb(83, 23, 114)
HSLhsl(280, 66%, 27%)
HSVhsv(280, 80%, 45%)
CMYKcmyk(27.2%, 79.8%, 0%, 55.3%)
CIE-LABlab(22.54, 42.57, -39.66)
CIE-LCHlch(22.54, 58.19, 317.03°)
OKLaboklab(35.14% 0.0974 -0.1124)
OKLCHoklch(35.14% 0.149 310.9)
XYZxyz(6.9104, 3.6669, 16.2601)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531772 #367217
analogous
#251772 #531772 #721764
triadic
#531772 #725317 #177253
tetradic
#531772 #722517 #367217 #176472
square
#531772 #722517 #367217 #176472
split-complementary
#531772 #647217 #177225
monochromatic
#130519 #2E0D3F #531772 #7821A5 #9C2ED5

Accessibility & contrast

On white

12.11
#531772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#531772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531772
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531772#FFFFFF#000000##FFFFFF
##5317721.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#033770
Tritanopia (blue-blind)
#4F2D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #531772;
/* rgb */ color: rgb(83, 23, 114);
/* oklch */ color: oklch(35.1% 0.149 310.9);
Tailwind
colors: {
  custom: {
    50: '#875b9b',
    500: '#531772',
    950: '#000000',
  },
}
SCSS
$custom: #531772;
$custom-light: #875b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#531772",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 279.56,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35135,
    "c": 0.14873,
    "h": 310.9
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#531772
secondary
#61A83D
accent
#E93E79
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531772

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

Preview Lab → · Contrast checker → · Palette generator →

#531772 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva