#5129BA#5129BA

#5129BA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.208 H 286.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5129BA
RGBrgb(81, 41, 186)
HSLhsl(257, 64%, 45%)
HSVhsv(257, 78%, 73%)
CMYKcmyk(56.5%, 78%, 0%, 27.1%)
CIE-LABlab(31.53, 53.05, -69.29)
CIE-LCHlch(31.53, 87.27, 307.44°)
OKLaboklab(43.37% 0.0595 -0.1995)
OKLCHoklch(43.37% 0.208 286.6)
XYZxyz(13.0465, 6.8796, 47.0853)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129BA #92BA29
analogous
#2949BA #5129BA #9A29BA
triadic
#5129BA #BA5129 #29BA51
tetradic
#5129BA #BA2949 #92BA29 #29BA9A
square
#5129BA #BA2949 #92BA29 #29BA9A
split-complementary
#5129BA #BA9A29 #49BA29
monochromatic
#251356 #3B1E88 #5129BA #7049D7 #987BE2

Accessibility & contrast

On white

8.84
#5129BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5129BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129BA
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129BA#FFFFFF#000000##FFFFFF
##5129BA1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#1F5371
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5129ba;
/* rgb */ color: rgb(81, 41, 186);
/* oklch */ color: oklch(43.4% 0.208 286.6);
Tailwind
colors: {
  custom: {
    50: '#8e68d0',
    500: '#5129ba',
    950: '#000000',
  },
}
SCSS
$custom: #5129ba;
$custom-light: #8e68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5129ba",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 186
  },
  "hsl": {
    "h": 256.552,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43368,
    "c": 0.20819,
    "h": 286.6
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#5129BA
secondary
#B3CA75
accent
#E741B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5129BA

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

Preview Lab → · Contrast checker → · Palette generator →

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