#5129BB#5129BB

#5129BB is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.209 H 286.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5129BB
RGBrgb(81, 41, 187)
HSLhsl(256, 64%, 45%)
HSVhsv(256, 78%, 73%)
CMYKcmyk(56.7%, 78.1%, 0%, 26.7%)
CIE-LABlab(31.63, 53.32, -69.72)
CIE-LCHlch(31.63, 87.78, 307.41°)
OKLaboklab(43.47% 0.0592 -0.2008)
OKLCHoklch(43.47% 0.209 286.4)
XYZxyz(13.1532, 6.9223, 47.6471)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129BB #93BB29
analogous
#294ABB #5129BB #9A29BB
triadic
#5129BB #BB5129 #29BB51
tetradic
#5129BB #BB294A #93BB29 #29BB9A
square
#5129BB #BB294A #93BB29 #29BB9A
split-complementary
#5129BB #BB9A29 #4ABB29
monochromatic
#261357 #3B1E89 #5129BB #714AD7 #987CE2

Accessibility & contrast

On white

8.81
#5129BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5129BB
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129BB#FFFFFF#000000##FFFFFF
##5129BB1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0046B8
Tritanopia (blue-blind)
#1E5372
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5129bb;
/* rgb */ color: rgb(81, 41, 187);
/* oklch */ color: oklch(43.5% 0.209 286.4);
Tailwind
colors: {
  custom: {
    50: '#8e68d1',
    500: '#5129bb',
    950: '#000000',
  },
}
SCSS
$custom: #5129bb;
$custom-light: #8e68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5129bb",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 187
  },
  "hsl": {
    "h": 256.438,
    "s": 64.035,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43466,
    "c": 0.20932,
    "h": 286.4
  },
  "luminance": 0.06923
}

Semantic roles & 50–950 ramp

primary
#5129BB
secondary
#B3CB75
accent
#E741B9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5129BB

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

Preview Lab → · Contrast checker → · Palette generator →

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