#5124C3#5124C3

#5124C3 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.8% C 0.222 H 285.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5124C3
RGBrgb(81, 36, 195)
HSLhsl(257, 69%, 45%)
HSVhsv(257, 82%, 76%)
CMYKcmyk(58.5%, 81.5%, 0%, 23.5%)
CIE-LABlab(31.69, 57.67, -74.33)
CIE-LCHlch(31.69, 94.08, 307.81°)
OKLaboklab(43.75% 0.0597 -0.2142)
OKLCHoklch(43.75% 0.222 285.6)
XYZxyz(13.8716, 6.9504, 52.2298)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124C3 #96C324
analogous
#2447C3 #5124C3 #A024C3
triadic
#5124C3 #C35124 #24C351
tetradic
#5124C3 #C32447 #96C324 #24C3A0
square
#5124C3 #C32447 #96C324 #24C3A0
split-complementary
#5124C3 #C3A024 #47C324
monochromatic
#26115C #3C1A8F #5124C3 #7247DD #997BE7

Accessibility & contrast

On white

8.79
#5124C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5124C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124C3
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124C3#FFFFFF#000000##FFFFFF
##5124C31.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC7
Deuteranopia (green-blind)
#0046C0
Tritanopia (blue-blind)
#0E5575
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5124c3;
/* rgb */ color: rgb(81, 36, 195);
/* oklch */ color: oklch(43.8% 0.222 285.6);
Tailwind
colors: {
  custom: {
    50: '#9066d7',
    500: '#5124c3',
    950: '#000000',
  },
}
SCSS
$custom: #5124c3;
$custom-light: #9066d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5124c3",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 195
  },
  "hsl": {
    "h": 256.981,
    "s": 68.831,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43752,
    "c": 0.22233,
    "h": 285.6
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#5124C3
secondary
#B5CE74
accent
#EC3CBA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5124C3

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

Preview Lab → · Contrast checker → · Palette generator →

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