#5129A3#5129A3

#5129A3 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.182 H 291.2°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5129A3
RGBrgb(81, 41, 163)
HSLhsl(260, 60%, 40%)
HSVhsv(260, 75%, 64%)
CMYKcmyk(50.3%, 74.8%, 0%, 36.1%)
CIE-LABlab(29.36, 46.63, -59.09)
CIE-LCHlch(29.36, 75.27, 308.27°)
OKLaboklab(41.19% 0.0658 -0.1697)
OKLCHoklch(41.19% 0.182 291.2)
XYZxyz(10.7953, 5.9791, 35.2285)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129A3 #7BA329
analogous
#293EA3 #5129A3 #8E29A3
triadic
#5129A3 #A35129 #29A351
tetradic
#5129A3 #A3293E #7BA329 #29A38E
square
#5129A3 #A3293E #7BA329 #29A38E
split-complementary
#5129A3 #A38E29 #3EA329
monochromatic
#201041 #391D72 #5129A3 #6B3BCE #906CDA

Accessibility & contrast

On white

9.56
#5129A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5129A3
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129A3#FFFFFF#000000##FFFFFF
##5129A31.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5129a3;
/* rgb */ color: rgb(81, 41, 163);
/* oklch */ color: oklch(41.2% 0.182 291.2);
Tailwind
colors: {
  custom: {
    50: '#8a67bf',
    500: '#5129a3',
    950: '#000000',
  },
}
SCSS
$custom: #5129a3;
$custom-light: #8a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5129a3",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 163
  },
  "hsl": {
    "h": 259.672,
    "s": 59.804,
    "l": 40
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.18199,
    "h": 291.2
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

primary
#5129A3
secondary
#A3C167
accent
#E345AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5129A3

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

Preview Lab → · Contrast checker → · Palette generator →

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