#531874#531874

#531874 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.150 H 309.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#531874
RGBrgb(83, 24, 116)
HSLhsl(278, 66%, 27%)
HSVhsv(278, 79%, 45%)
CMYKcmyk(28.4%, 79.3%, 0%, 54.5%)
CIE-LABlab(22.84, 42.63, -40.46)
CIE-LCHlch(22.84, 58.77, 316.49°)
OKLaboklab(35.4% 0.096 -0.1147)
OKLCHoklch(35.4% 0.15 309.9)
XYZxyz(7.0457, 3.7534, 16.8729)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531874 #397418
analogous
#251874 #531874 #741867
triadic
#531874 #745318 #187453
tetradic
#531874 #742518 #397418 #186774
square
#531874 #742518 #397418 #186774
split-complementary
#531874 #677418 #187425
monochromatic
#120519 #2F0E41 #531874 #7722A7 #9A32D5

Accessibility & contrast

On white

12.00
#531874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#531874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531874
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531874#FFFFFF#000000##FFFFFF
##5318741.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#4E2E45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #531874;
/* rgb */ color: rgb(83, 24, 116);
/* oklch */ color: oklch(35.4% 0.150 309.9);
Tailwind
colors: {
  custom: {
    50: '#875c9d',
    500: '#531874',
    950: '#000000',
  },
}
SCSS
$custom: #531874;
$custom-light: #875c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#531874",
  "rgb": {
    "r": 83,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 278.478,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.14962,
    "h": 309.9
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#531874
secondary
#65A93F
accent
#E93F7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531874

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

Preview Lab → · Contrast checker → · Palette generator →

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