#5124B1#5124B1

#5124B1 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.203 H 288.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5124B1
RGBrgb(81, 36, 177)
HSLhsl(259, 66%, 42%)
HSVhsv(259, 80%, 69%)
CMYKcmyk(54.2%, 79.7%, 0%, 30.6%)
CIE-LABlab(29.87, 52.80, -66.67)
CIE-LCHlch(29.87, 85.05, 308.38°)
OKLaboklab(41.95% 0.0657 -0.1918)
OKLCHoklch(41.95% 0.203 288.9)
XYZxyz(11.9577, 6.1848, 42.1502)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124B1 #84B124
analogous
#243EB1 #5124B1 #9824B1
triadic
#5124B1 #B15124 #24B151
tetradic
#5124B1 #B1243E #84B124 #24B198
square
#5124B1 #B1243E #84B124 #24B198
split-complementary
#5124B1 #B19824 #3EB124
monochromatic
#220F4B #3A1A7E #5124B1 #6D3BD7 #936EE1

Accessibility & contrast

On white

9.39
#5124B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5124B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124B1
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124B1#FFFFFF#000000##FFFFFF
##5124B11.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#2A4D6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5124b1;
/* rgb */ color: rgb(81, 36, 177);
/* oklch */ color: oklch(41.9% 0.203 288.9);
Tailwind
colors: {
  custom: {
    50: '#8d65ca',
    500: '#5124b1',
    950: '#000000',
  },
}
SCSS
$custom: #5124b1;
$custom-light: #8d65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5124b1",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 259.149,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41949,
    "c": 0.20271,
    "h": 288.9
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#5124B1
secondary
#AAC869
accent
#E93FB3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5124B1

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

Preview Lab → · Contrast checker → · Palette generator →

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