#531276#531276

#531276 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.158 H 309.7°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#531276
RGBrgb(83, 18, 118)
HSLhsl(279, 74%, 27%)
HSVhsv(279, 85%, 46%)
CMYKcmyk(29.7%, 84.7%, 0%, 53.7%)
CIE-LABlab(22.23, 45.32, -42.73)
CIE-LCHlch(22.23, 62.29, 316.68°)
OKLaboklab(35.02% 0.1008 -0.1214)
OKLCHoklch(35.02% 0.158 309.7)
XYZxyz(7.0529, 3.5798, 17.4554)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531276 #357612
analogous
#211276 #531276 #761267
triadic
#531276 #765312 #127653
tetradic
#531276 #762112 #357612 #126776
square
#531276 #762112 #357612 #126776
split-complementary
#531276 #677612 #127621
monochromatic
#13041B #2E0A41 #531276 #781AAB #9D25DE

Accessibility & contrast

On white

12.24
#531276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#531276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531276
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531276#FFFFFF#000000##FFFFFF
##5312761.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4E2C45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #531276;
/* rgb */ color: rgb(83, 18, 118);
/* oklch */ color: oklch(35.0% 0.158 309.7);
Tailwind
colors: {
  custom: {
    50: '#885a9e',
    500: '#531276',
    950: '#000000',
  },
}
SCSS
$custom: #531276;
$custom-light: #885a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#531276",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 279,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.15776,
    "h": 309.7
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#531276
secondary
#60AD37
accent
#F03878
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531276

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

Preview Lab → · Contrast checker → · Palette generator →

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