#531272#531272

#531272 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.154 H 311.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#531272
RGBrgb(83, 18, 114)
HSLhsl(281, 73%, 26%)
HSVhsv(281, 84%, 45%)
CMYKcmyk(27.2%, 84.2%, 0%, 55.3%)
CIE-LABlab(21.90, 44.43, -40.70)
CIE-LCHlch(21.90, 60.26, 317.50°)
OKLaboklab(34.69% 0.1018 -0.1154)
OKLCHoklch(34.69% 0.154 311.4)
XYZxyz(6.8203, 3.4867, 16.2300)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531272 #317212
analogous
#231272 #531272 #721261
triadic
#531272 #725312 #127253
tetradic
#531272 #722312 #317212 #126172
square
#531272 #722312 #317212 #126172
split-complementary
#531272 #617212 #127223
monochromatic
#13041A #2D0A3D #531272 #791AA7 #A023DC

Accessibility & contrast

On white

12.37
#531272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#531272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531272
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531272#FFFFFF#000000##FFFFFF
##5312721.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#4F2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #531272;
/* rgb */ color: rgb(83, 18, 114);
/* oklch */ color: oklch(34.7% 0.154 311.4);
Tailwind
colors: {
  custom: {
    50: '#87599b',
    500: '#531272',
    950: '#000000',
  },
}
SCSS
$custom: #531272;
$custom-light: #87599b;
$custom-dark: #000000;
JSON
{
  "hex": "#531272",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 280.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.15392,
    "h": 311.4
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#531272
secondary
#5CA937
accent
#EF3873
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531272

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

Preview Lab → · Contrast checker → · Palette generator →

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