#5124AE#5124AE

#5124AE is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.199 H 289.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5124AE
RGBrgb(81, 36, 174)
HSLhsl(260, 66%, 41%)
HSVhsv(260, 79%, 68%)
CMYKcmyk(53.4%, 79.3%, 0%, 31.8%)
CIE-LABlab(29.58, 51.99, -65.36)
CIE-LCHlch(29.58, 83.52, 308.50°)
OKLaboklab(41.66% 0.0666 -0.188)
OKLCHoklch(41.66% 0.199 289.5)
XYZxyz(11.6620, 6.0665, 40.5927)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124AE #81AE24
analogous
#243CAE #5124AE #9624AE
triadic
#5124AE #AE5124 #24AE51
tetradic
#5124AE #AE243C #81AE24 #24AE96
square
#5124AE #AE243C #81AE24 #24AE96
split-complementary
#5124AE #AE9624 #3CAE24
monochromatic
#220F49 #391A7B #5124AE #6C39D6 #926CE1

Accessibility & contrast

On white

9.49
#5124AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5124AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124AE
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124AE#FFFFFF#000000##FFFFFF
##5124AE1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#2D4C69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5124ae;
/* rgb */ color: rgb(81, 36, 174);
/* oklch */ color: oklch(41.7% 0.199 289.5);
Tailwind
colors: {
  custom: {
    50: '#8c65c7',
    500: '#5124ae',
    950: '#000000',
  },
}
SCSS
$custom: #5124ae;
$custom-light: #8c65c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5124ae",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 174
  },
  "hsl": {
    "h": 259.565,
    "s": 65.714,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41656,
    "c": 0.19941,
    "h": 289.5
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#5124AE
secondary
#A8C767
accent
#E93FB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5124AE

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

Preview Lab → · Contrast checker → · Palette generator →

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