#5124A9#5124A9

#5124A9 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.194 H 290.6°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5124A9
RGBrgb(81, 36, 169)
HSLhsl(260, 65%, 40%)
HSVhsv(260, 79%, 66%)
CMYKcmyk(52.1%, 78.7%, 0%, 33.7%)
CIE-LABlab(29.10, 50.63, -63.15)
CIE-LCHlch(29.10, 80.94, 308.72°)
OKLaboklab(41.17% 0.0681 -0.1815)
OKLCHoklch(41.17% 0.194 290.6)
XYZxyz(11.1836, 5.8752, 38.0732)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124A9 #7CA924
analogous
#2439A9 #5124A9 #9424A9
triadic
#5124A9 #A95124 #24A951
tetradic
#5124A9 #A92439 #7CA924 #24A994
square
#5124A9 #A92439 #7CA924 #24A994
split-complementary
#5124A9 #A99424 #39A924
monochromatic
#210F44 #391977 #5124A9 #6C36D4 #9168DF

Accessibility & contrast

On white

9.65
#5124A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5124A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124A9
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124A9#FFFFFF#000000##FFFFFF
##5124A91.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#314A66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5124a9;
/* rgb */ color: rgb(81, 36, 169);
/* oklch */ color: oklch(41.2% 0.194 290.6);
Tailwind
colors: {
  custom: {
    50: '#8b65c4',
    500: '#5124a9',
    950: '#000000',
  },
}
SCSS
$custom: #5124a9;
$custom-light: #8b65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5124a9",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 260.301,
    "s": 64.878,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41173,
    "c": 0.19387,
    "h": 290.6
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#5124A9
secondary
#A4C564
accent
#E840AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5124A9

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

Preview Lab → · Contrast checker → · Palette generator →

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