#5128BA#5128BA

#5128BA is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.3% C 0.209 H 286.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5128BA
RGBrgb(81, 40, 186)
HSLhsl(257, 65%, 44%)
HSVhsv(257, 78%, 73%)
CMYKcmyk(56.5%, 78.5%, 0%, 27.1%)
CIE-LABlab(31.37, 53.50, -69.55)
CIE-LCHlch(31.37, 87.75, 307.57°)
OKLaboklab(43.26% 0.0602 -0.2002)
OKLCHoklch(43.26% 0.209 286.7)
XYZxyz(13.0124, 6.8114, 47.0739)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128BA #91BA28
analogous
#2848BA #5128BA #9A28BA
triadic
#5128BA #BA5128 #28BA51
tetradic
#5128BA #BA2848 #91BA28 #28BA9A
square
#5128BA #BA2848 #91BA28 #28BA9A
split-complementary
#5128BA #BA9A28 #48BA28
monochromatic
#251255 #3B1D88 #5128BA #7048D8 #977AE2

Accessibility & contrast

On white

8.89
#5128BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5128BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128BA
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128BA#FFFFFF#000000##FFFFFF
##5128BA1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5128ba;
/* rgb */ color: rgb(81, 40, 186);
/* oklch */ color: oklch(43.3% 0.209 286.7);
Tailwind
colors: {
  custom: {
    50: '#8e68d0',
    500: '#5128ba',
    950: '#000000',
  },
}
SCSS
$custom: #5128ba;
$custom-light: #8e68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5128ba",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 256.849,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43258,
    "c": 0.2091,
    "h": 286.7
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#5128BA
secondary
#B2CA73
accent
#E840B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5128BA

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

Preview Lab → · Contrast checker → · Palette generator →

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