#5128BF#5128BF

#5128BF is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.8% C 0.215 H 285.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5128BF
RGBrgb(81, 40, 191)
HSLhsl(256, 65%, 45%)
HSVhsv(256, 79%, 75%)
CMYKcmyk(57.6%, 79.1%, 0%, 25.1%)
CIE-LABlab(31.87, 54.88, -71.69)
CIE-LCHlch(31.87, 90.28, 307.44°)
OKLaboklab(43.75% 0.0587 -0.2065)
OKLCHoklch(43.75% 0.215 285.9)
XYZxyz(13.5533, 7.0277, 49.9224)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128BF #96BF28
analogous
#284BBF #5128BF #9C28BF
triadic
#5128BF #BF5128 #28BF51
tetradic
#5128BF #BF284B #96BF28 #28BF9C
square
#5128BF #BF284B #96BF28 #28BF9C
split-complementary
#5128BF #BF9C28 #4BBF28
monochromatic
#26135A #3C1D8C #5128BF #724BD9 #997EE4

Accessibility & contrast

On white

8.73
#5128BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5128BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128BF
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128BF#FFFFFF#000000##FFFFFF
##5128BF1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC3
Deuteranopia (green-blind)
#0046BC
Tritanopia (blue-blind)
#175574
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5128bf;
/* rgb */ color: rgb(81, 40, 191);
/* oklch */ color: oklch(43.8% 0.215 285.9);
Tailwind
colors: {
  custom: {
    50: '#8f68d4',
    500: '#5128bf',
    950: '#000000',
  },
}
SCSS
$custom: #5128bf;
$custom-light: #8f68d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5128bf",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 191
  },
  "hsl": {
    "h": 256.291,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43752,
    "c": 0.21466,
    "h": 285.9
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#5128BF
secondary
#B5CC77
accent
#E83FBA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5128BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5128BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva