#5129C4#5129C4

#5129C4 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.4% C 0.219 H 284.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5129C4
RGBrgb(81, 41, 196)
HSLhsl(255, 65%, 46%)
HSVhsv(255, 79%, 77%)
CMYKcmyk(58.7%, 79.1%, 0%, 23.1%)
CIE-LABlab(32.52, 55.82, -73.55)
CIE-LCHlch(32.52, 92.33, 307.20°)
OKLaboklab(44.36% 0.0565 -0.2119)
OKLCHoklch(44.36% 0.219 284.9)
XYZxyz(14.1470, 7.3198, 52.8812)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129C4 #9CC429
analogous
#294FC4 #5129C4 #9F29C4
triadic
#5129C4 #C45129 #29C451
tetradic
#5129C4 #C4294F #9CC429 #29C49F
square
#5129C4 #C4294F #9CC429 #29C49F
split-complementary
#5129C4 #C49F29 #4FC429
monochromatic
#27145F #3C1E91 #5129C4 #7450DA #9C82E5

Accessibility & contrast

On white

8.52
#5129C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5129C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129C4
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129C4#FFFFFF#000000##FFFFFF
##5129C41.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0048C1
Tritanopia (blue-blind)
#0A5777
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5129c4;
/* rgb */ color: rgb(81, 41, 196);
/* oklch */ color: oklch(44.4% 0.219 284.9);
Tailwind
colors: {
  custom: {
    50: '#8f69d7',
    500: '#5129c4',
    950: '#000000',
  },
}
SCSS
$custom: #5129c4;
$custom-light: #8f69d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5129c4",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 196
  },
  "hsl": {
    "h": 255.484,
    "s": 65.401,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44357,
    "c": 0.21934,
    "h": 284.9
  },
  "luminance": 0.07321
}

Semantic roles & 50–950 ramp

primary
#5129C4
secondary
#B8CE7B
accent
#E83FBD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5129C4

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

Preview Lab → · Contrast checker → · Palette generator →

#5129C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva