#5124AF#5124AF

#5124AF is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.201 H 289.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5124AF
RGBrgb(81, 36, 175)
HSLhsl(259, 66%, 41%)
HSVhsv(259, 79%, 69%)
CMYKcmyk(53.7%, 79.4%, 0%, 31.4%)
CIE-LABlab(29.68, 52.26, -65.80)
CIE-LCHlch(29.68, 84.03, 308.46°)
OKLaboklab(41.75% 0.0663 -0.1892)
OKLCHoklch(41.75% 0.201 289.3)
XYZxyz(11.7598, 6.1057, 41.1080)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124AF #82AF24
analogous
#243DAF #5124AF #9724AF
triadic
#5124AF #AF5124 #24AF51
tetradic
#5124AF #AF243D #82AF24 #24AF97
square
#5124AF #AF243D #82AF24 #24AF97
split-complementary
#5124AF #AF9724 #3DAF24
monochromatic
#220F49 #3A1A7C #5124AF #6C3AD6 #926DE1

Accessibility & contrast

On white

9.45
#5124AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5124AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124AF
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124AF#FFFFFF#000000##FFFFFF
##5124AF1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#2C4D6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5124af;
/* rgb */ color: rgb(81, 36, 175);
/* oklch */ color: oklch(41.8% 0.201 289.3);
Tailwind
colors: {
  custom: {
    50: '#8c65c8',
    500: '#5124af',
    950: '#000000',
  },
}
SCSS
$custom: #5124af;
$custom-light: #8c65c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5124af",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 175
  },
  "hsl": {
    "h": 259.424,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.20051,
    "h": 289.3
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5124AF

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

Preview Lab → · Contrast checker → · Palette generator →

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