#5129A6#5129A6

#5129A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.185 H 290.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5129A6
RGBrgb(81, 41, 166)
HSLhsl(259, 60%, 41%)
HSVhsv(259, 75%, 65%)
CMYKcmyk(51.2%, 75.3%, 0%, 34.9%)
CIE-LABlab(29.63, 47.46, -60.46)
CIE-LCHlch(29.63, 76.86, 308.13°)
OKLaboklab(41.46% 0.0651 -0.1737)
OKLCHoklch(41.46% 0.185 290.5)
XYZxyz(11.0672, 6.0879, 36.6609)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129A6 #7EA629
analogous
#293FA6 #5129A6 #8F29A6
triadic
#5129A6 #A65129 #29A651
tetradic
#5129A6 #A6293F #7EA629 #29A68F
square
#5129A6 #A6293F #7EA629 #29A68F
split-complementary
#5129A6 #A68F29 #3FA629
monochromatic
#211144 #391D75 #5129A6 #6C3DCF #916EDB

Accessibility & contrast

On white

9.47
#5129A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5129A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129A6
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129A6#FFFFFF#000000##FFFFFF
##5129A61.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#334B66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5129a6;
/* rgb */ color: rgb(81, 41, 166);
/* oklch */ color: oklch(41.5% 0.185 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b67c1',
    500: '#5129a6',
    950: '#000000',
  },
}
SCSS
$custom: #5129a6;
$custom-light: #8b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5129a6",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 259.2,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41464,
    "c": 0.18545,
    "h": 290.5
  },
  "luminance": 0.06088
}

Semantic roles & 50–950 ramp

primary
#5129A6
secondary
#A5C269
accent
#E444B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5129A6

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

Preview Lab → · Contrast checker → · Palette generator →

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