#5129A4#5129A4

#5129A4 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.183 H 291.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5129A4
RGBrgb(81, 41, 164)
HSLhsl(260, 60%, 40%)
HSVhsv(260, 75%, 64%)
CMYKcmyk(50.6%, 75%, 0%, 35.7%)
CIE-LABlab(29.45, 46.90, -59.55)
CIE-LCHlch(29.45, 75.80, 308.23°)
OKLaboklab(41.28% 0.0656 -0.171)
OKLCHoklch(41.28% 0.183 291)
XYZxyz(10.8852, 6.0151, 35.7022)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129A4 #7CA429
analogous
#293FA4 #5129A4 #8E29A4
triadic
#5129A4 #A45129 #29A451
tetradic
#5129A4 #A4293F #7CA429 #29A48E
square
#5129A4 #A4293F #7CA429 #29A48E
split-complementary
#5129A4 #A48E29 #3FA429
monochromatic
#211142 #391D73 #5129A4 #6C3CCE #916DDA

Accessibility & contrast

On white

9.53
#5129A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5129A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129A4
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129A4#FFFFFF#000000##FFFFFF
##5129A41.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#354A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5129a4;
/* rgb */ color: rgb(81, 41, 164);
/* oklch */ color: oklch(41.3% 0.183 291.0);
Tailwind
colors: {
  custom: {
    50: '#8a67c0',
    500: '#5129a4',
    950: '#000000',
  },
}
SCSS
$custom: #5129a4;
$custom-light: #8a67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5129a4",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 164
  },
  "hsl": {
    "h": 259.512,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41279,
    "c": 0.18314,
    "h": 291
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#5129A4
secondary
#A4C168
accent
#E345B0
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5129A4

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

Preview Lab → · Contrast checker → · Palette generator →

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