#5129BC#5129BC

#5129BC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.210 H 286.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5129BC
RGBrgb(81, 41, 188)
HSLhsl(256, 64%, 45%)
HSVhsv(256, 78%, 74%)
CMYKcmyk(56.9%, 78.2%, 0%, 26.3%)
CIE-LABlab(31.73, 53.60, -70.15)
CIE-LCHlch(31.73, 88.28, 307.38°)
OKLaboklab(43.56% 0.0589 -0.202)
OKLCHoklch(43.56% 0.21 286.3)
XYZxyz(13.2606, 6.9653, 48.2129)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129BC #94BC29
analogous
#294ABC #5129BC #9B29BC
triadic
#5129BC #BC5129 #29BC51
tetradic
#5129BC #BC294A #94BC29 #29BC9B
square
#5129BC #BC294A #94BC29 #29BC9B
split-complementary
#5129BC #BC9B29 #4ABC29
monochromatic
#261358 #3B1E8A #5129BC #714BD8 #987DE3

Accessibility & contrast

On white

8.77
#5129BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5129BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129BC
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129BC#FFFFFF#000000##FFFFFF
##5129BC1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#1C5472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5129bc;
/* rgb */ color: rgb(81, 41, 188);
/* oklch */ color: oklch(43.6% 0.210 286.3);
Tailwind
colors: {
  custom: {
    50: '#8e68d1',
    500: '#5129bc',
    950: '#000000',
  },
}
SCSS
$custom: #5129bc;
$custom-light: #8e68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5129bc",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 188
  },
  "hsl": {
    "h": 256.327,
    "s": 64.192,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43564,
    "c": 0.21043,
    "h": 286.3
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#5129BC
secondary
#B4CB76
accent
#E741BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5129BC

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

Preview Lab → · Contrast checker → · Palette generator →

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