#5129A1#5129A1

#5129A1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.180 H 291.7°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5129A1
RGBrgb(81, 41, 161)
HSLhsl(260, 59%, 40%)
HSVhsv(260, 75%, 63%)
CMYKcmyk(49.7%, 74.5%, 0%, 36.9%)
CIE-LABlab(29.18, 46.07, -58.18)
CIE-LCHlch(29.18, 74.21, 308.37°)
OKLaboklab(41.01% 0.0663 -0.167)
OKLCHoklch(41.01% 0.18 291.7)
XYZxyz(10.6175, 5.9080, 34.2922)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129A1 #79A129
analogous
#293DA1 #5129A1 #8D29A1
triadic
#5129A1 #A15129 #29A151
tetradic
#5129A1 #A1293D #79A129 #29A18D
square
#5129A1 #A1293D #79A129 #29A18D
split-complementary
#5129A1 #A18D29 #3DA129
monochromatic
#20103F #381D70 #5129A1 #6B3ACD #906BD9

Accessibility & contrast

On white

9.63
#5129A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5129A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129A1
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129A1#FFFFFF#000000##FFFFFF
##5129A11.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#374963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5129a1;
/* rgb */ color: rgb(81, 41, 161);
/* oklch */ color: oklch(41.0% 0.180 291.7);
Tailwind
colors: {
  custom: {
    50: '#8a67be',
    500: '#5129a1',
    950: '#000000',
  },
}
SCSS
$custom: #5129a1;
$custom-light: #8a67be;
$custom-dark: #000000;
JSON
{
  "hex": "#5129a1",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 161
  },
  "hsl": {
    "h": 260,
    "s": 59.406,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41005,
    "c": 0.17967,
    "h": 291.7
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#5129A1
secondary
#A2C066
accent
#E345AE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #5129A1

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

Preview Lab → · Contrast checker → · Palette generator →

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