#5124B0#5124B0

#5124B0 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.9% C 0.202 H 289.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5124B0
RGBrgb(81, 36, 176)
HSLhsl(259, 66%, 42%)
HSVhsv(259, 80%, 69%)
CMYKcmyk(54%, 79.5%, 0%, 31%)
CIE-LABlab(29.78, 52.53, -66.23)
CIE-LCHlch(29.78, 84.54, 308.42°)
OKLaboklab(41.85% 0.066 -0.1905)
OKLCHoklch(41.85% 0.202 289.1)
XYZxyz(11.8584, 6.1451, 41.6272)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124B0 #83B024
analogous
#243DB0 #5124B0 #9724B0
triadic
#5124B0 #B05124 #24B051
tetradic
#5124B0 #B0243D #83B024 #24B097
square
#5124B0 #B0243D #83B024 #24B097
split-complementary
#5124B0 #B09724 #3DB024
monochromatic
#220F4A #3A1A7D #5124B0 #6D3AD7 #926DE1

Accessibility & contrast

On white

9.42
#5124B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5124B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124B0
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124B0#FFFFFF#000000##FFFFFF
##5124B01.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B4
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#2B4D6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5124b0;
/* rgb */ color: rgb(81, 36, 176);
/* oklch */ color: oklch(41.9% 0.202 289.1);
Tailwind
colors: {
  custom: {
    50: '#8d65c9',
    500: '#5124b0',
    950: '#000000',
  },
}
SCSS
$custom: #5124b0;
$custom-light: #8d65c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5124b0",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 176
  },
  "hsl": {
    "h": 259.286,
    "s": 66.038,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41851,
    "c": 0.20161,
    "h": 289.1
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#5124B0
secondary
#A9C868
accent
#E93FB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5124B0

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

Preview Lab → · Contrast checker → · Palette generator →

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