#5124C9#5124C9

#5124C9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.4% C 0.229 H 284.6°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5124C9
RGBrgb(81, 36, 201)
HSLhsl(256, 70%, 46%)
HSVhsv(256, 82%, 79%)
CMYKcmyk(59.7%, 82.1%, 0%, 21.2%)
CIE-LABlab(32.32, 59.29, -76.81)
CIE-LCHlch(32.32, 97.03, 307.66°)
OKLaboklab(44.37% 0.0577 -0.2214)
OKLCHoklch(44.37% 0.229 284.6)
XYZxyz(14.5636, 7.2272, 55.8746)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124C9 #9CC924
analogous
#2449C9 #5124C9 #A424C9
triadic
#5124C9 #C95124 #24C951
tetradic
#5124C9 #C92449 #9CC924 #24C9A4
square
#5124C9 #C92449 #9CC924 #24C9A4
split-complementary
#5124C9 #C9A424 #49C924
monochromatic
#271161 #3C1B95 #5124C9 #744BDF #9C7FE8

Accessibility & contrast

On white

8.59
#5124C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5124C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124C9
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124C9#FFFFFF#000000##FFFFFF
##5124C91.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CD
Deuteranopia (green-blind)
#0047C6
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5124c9;
/* rgb */ color: rgb(81, 36, 201);
/* oklch */ color: oklch(44.4% 0.229 284.6);
Tailwind
colors: {
  custom: {
    50: '#9167db',
    500: '#5124c9',
    950: '#000000',
  },
}
SCSS
$custom: #5124c9;
$custom-light: #9167db;
$custom-dark: #000000;
JSON
{
  "hex": "#5124c9",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 201
  },
  "hsl": {
    "h": 256.364,
    "s": 69.62,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44367,
    "c": 0.22879,
    "h": 284.6
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#5124C9
secondary
#B8D178
accent
#EC3BBC
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5124C9

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

Preview Lab → · Contrast checker → · Palette generator →

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