#5129BD#5129BD

#5129BD is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.7% C 0.212 H 286.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5129BD
RGBrgb(81, 41, 189)
HSLhsl(256, 64%, 45%)
HSVhsv(256, 78%, 74%)
CMYKcmyk(57.1%, 78.3%, 0%, 25.9%)
CIE-LABlab(31.83, 53.88, -70.58)
CIE-LCHlch(31.83, 88.79, 307.36°)
OKLaboklab(43.66% 0.0586 -0.2033)
OKLCHoklch(43.66% 0.212 286.1)
XYZxyz(13.3688, 7.0086, 48.7826)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129BD #95BD29
analogous
#294BBD #5129BD #9B29BD
triadic
#5129BD #BD5129 #29BD51
tetradic
#5129BD #BD294B #95BD29 #29BD9B
square
#5129BD #BD294B #95BD29 #29BD9B
split-complementary
#5129BD #BD9B29 #4BBD29
monochromatic
#261358 #3B1E8B #5129BD #714BD8 #997DE3

Accessibility & contrast

On white

8.74
#5129BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5129BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129BD
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129BD#FFFFFF#000000##FFFFFF
##5129BD1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0046BA
Tritanopia (blue-blind)
#1A5473
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5129bd;
/* rgb */ color: rgb(81, 41, 189);
/* oklch */ color: oklch(43.7% 0.212 286.1);
Tailwind
colors: {
  custom: {
    50: '#8e68d2',
    500: '#5129bd',
    950: '#000000',
  },
}
SCSS
$custom: #5129bd;
$custom-light: #8e68d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5129bd",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 189
  },
  "hsl": {
    "h": 256.216,
    "s": 64.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43662,
    "c": 0.21155,
    "h": 286.1
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#5129BD
secondary
#B4CB77
accent
#E740BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5129BD

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

Preview Lab → · Contrast checker → · Palette generator →

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