#5127BD#5127BD

#5127BD is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.213 H 286.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5127BD
RGBrgb(81, 39, 189)
HSLhsl(257, 66%, 45%)
HSVhsv(257, 79%, 74%)
CMYKcmyk(57.1%, 79.4%, 0%, 25.9%)
CIE-LABlab(31.52, 54.77, -71.09)
CIE-LCHlch(31.52, 89.74, 307.61°)
OKLaboklab(43.45% 0.0599 -0.2047)
OKLCHoklch(43.45% 0.213 286.3)
XYZxyz(13.3014, 6.8737, 48.7601)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127BD #93BD27
analogous
#2748BD #5127BD #9C27BD
triadic
#5127BD #BD5127 #27BD51
tetradic
#5127BD #BD2748 #93BD27 #27BD9C
square
#5127BD #BD2748 #93BD27 #27BD9C
split-complementary
#5127BD #BD9C27 #48BD27
monochromatic
#261258 #3B1D8A #5127BD #7148D9 #987BE4

Accessibility & contrast

On white

8.84
#5127BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5127BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5127BD
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5127BD#FFFFFF#000000##FFFFFF
##5127BD1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0046BA
Tritanopia (blue-blind)
#1B5372
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5127bd;
/* rgb */ color: rgb(81, 39, 189);
/* oklch */ color: oklch(43.4% 0.213 286.3);
Tailwind
colors: {
  custom: {
    50: '#8e67d2',
    500: '#5127bd',
    950: '#000000',
  },
}
SCSS
$custom: #5127bd;
$custom-light: #8e67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5127bd",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 256.8,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43448,
    "c": 0.21332,
    "h": 286.3
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

primary
#5127BD
secondary
#B3CC74
accent
#E93FB9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5127BD

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

Preview Lab → · Contrast checker → · Palette generator →

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