#531266#531266

#531266 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.142 H 317.1°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#531266
RGBrgb(83, 18, 102)
HSLhsl(286, 70%, 24%)
HSVhsv(286, 82%, 40%)
CMYKcmyk(18.6%, 82.4%, 0%, 60%)
CIE-LABlab(20.95, 41.82, -34.44)
CIE-LCHlch(20.95, 54.18, 320.53°)
OKLaboklab(33.72% 0.1044 -0.097)
OKLCHoklch(33.72% 0.142 317.1)
XYZxyz(6.1815, 3.2312, 12.8659)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531266 #256612
analogous
#291266 #531266 #66124F
triadic
#531266 #665312 #126653
tetradic
#531266 #662912 #256612 #124F66
square
#531266 #662912 #256612 #124F66
split-complementary
#531266 #4F6612 #126629
monochromatic
#15051A #290932 #531266 #7D1B9A #A824CE

Accessibility & contrast

On white

12.76
#531266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#531266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531266
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531266#FFFFFF#000000##FFFFFF
##5312661.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#133464
Tritanopia (blue-blind)
#52253C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #531266;
/* rgb */ color: rgb(83, 18, 102);
/* oklch */ color: oklch(33.7% 0.142 317.1);
Tailwind
colors: {
  custom: {
    50: '#875992',
    500: '#531266',
    950: '#000000',
  },
}
SCSS
$custom: #531266;
$custom-light: #875992;
$custom-dark: #000000;
JSON
{
  "hex": "#531266",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 286.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33719,
    "c": 0.14248,
    "h": 317.1
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#531266
secondary
#4D9E36
accent
#ED3B63
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #531266

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

Preview Lab → · Contrast checker → · Palette generator →

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