#531274#531274

#531274 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.156 H 310.6°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#531274
RGBrgb(83, 18, 116)
HSLhsl(280, 73%, 26%)
HSVhsv(280, 84%, 45%)
CMYKcmyk(28.4%, 84.5%, 0%, 54.5%)
CIE-LABlab(22.06, 44.88, -41.72)
CIE-LCHlch(22.06, 61.27, 317.08°)
OKLaboklab(34.85% 0.1013 -0.1184)
OKLCHoklch(34.85% 0.156 310.6)
XYZxyz(6.9354, 3.5327, 16.8362)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531274 #337412
analogous
#221274 #531274 #741264
triadic
#531274 #745312 #127453
tetradic
#531274 #742212 #337412 #126474
square
#531274 #742212 #337412 #126474
split-complementary
#531274 #647412 #127422
monochromatic
#13041A #2D0A3F #531274 #791AA9 #9E23DD

Accessibility & contrast

On white

12.31
#531274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#531274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531274
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531274#FFFFFF#000000##FFFFFF
##5312741.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4E2B44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #531274;
/* rgb */ color: rgb(83, 18, 116);
/* oklch */ color: oklch(34.9% 0.156 310.6);
Tailwind
colors: {
  custom: {
    50: '#885a9d',
    500: '#531274',
    950: '#000000',
  },
}
SCSS
$custom: #531274;
$custom-light: #885a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#531274",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 279.796,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34853,
    "c": 0.15584,
    "h": 310.6
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#531274
secondary
#5EAB37
accent
#F03876
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531274

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

Preview Lab → · Contrast checker → · Palette generator →

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