#5124A1#5124A1

#5124A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.185 H 292.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5124A1
RGBrgb(81, 36, 161)
HSLhsl(262, 63%, 39%)
HSVhsv(262, 78%, 63%)
CMYKcmyk(49.7%, 77.6%, 0%, 36.9%)
CIE-LABlab(28.34, 48.46, -59.56)
CIE-LCHlch(28.34, 76.78, 309.14°)
OKLaboklab(40.41% 0.0705 -0.171)
OKLCHoklch(40.41% 0.185 292.4)
XYZxyz(10.4554, 5.5839, 34.2382)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124A1 #74A124
analogous
#2435A1 #5124A1 #8F24A1
triadic
#5124A1 #A15124 #24A151
tetradic
#5124A1 #A12435 #74A124 #24A18F
square
#5124A1 #A12435 #74A124 #24A18F
split-complementary
#5124A1 #A18F24 #35A124
monochromatic
#1F0E3D #38196F #5124A1 #6B31D1 #8F63DC

Accessibility & contrast

On white

9.92
#5124A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5124A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124A1
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124A1#FFFFFF#000000##FFFFFF
##5124A11.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#374762
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5124a1;
/* rgb */ color: rgb(81, 36, 161);
/* oklch */ color: oklch(40.4% 0.185 292.4);
Tailwind
colors: {
  custom: {
    50: '#8a64be',
    500: '#5124a1',
    950: '#000000',
  },
}
SCSS
$custom: #5124a1;
$custom-light: #8a64be;
$custom-dark: #000000;
JSON
{
  "hex": "#5124a1",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 161
  },
  "hsl": {
    "h": 261.6,
    "s": 63.452,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.18495,
    "h": 292.4
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#5124A1
secondary
#9EC25F
accent
#E641AB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5124A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5124A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva