#5128BC#5128BC

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

Color values

HEX#5128BC
RGBrgb(81, 40, 188)
HSLhsl(257, 65%, 45%)
HSVhsv(257, 79%, 74%)
CMYKcmyk(56.9%, 78.7%, 0%, 26.3%)
CIE-LABlab(31.57, 54.05, -70.41)
CIE-LCHlch(31.57, 88.76, 307.51°)
OKLaboklab(43.46% 0.0596 -0.2028)
OKLCHoklch(43.46% 0.211 286.4)
XYZxyz(13.2265, 6.8970, 48.2015)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128BC #93BC28
analogous
#2849BC #5128BC #9B28BC
triadic
#5128BC #BC5128 #28BC51
tetradic
#5128BC #BC2849 #93BC28 #28BC9B
square
#5128BC #BC2849 #93BC28 #28BC9B
split-complementary
#5128BC #BC9B28 #49BC28
monochromatic
#261357 #3B1D8A #5128BC #7149D8 #987BE3

Accessibility & contrast

On white

8.83
#5128BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5128BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128BC
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128BC#FFFFFF#000000##FFFFFF
##5128BC1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5128bc;
/* rgb */ color: rgb(81, 40, 188);
/* oklch */ color: oklch(43.5% 0.211 286.4);
Tailwind
colors: {
  custom: {
    50: '#8e68d1',
    500: '#5128bc',
    950: '#000000',
  },
}
SCSS
$custom: #5128bc;
$custom-light: #8e68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5128bc",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 256.622,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43455,
    "c": 0.21134,
    "h": 286.4
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#5128BC
secondary
#B3CB75
accent
#E840B9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5128BC

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

Preview Lab → · Contrast checker → · Palette generator →

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