#5126BA#5126BA

#5126BA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.211 H 287.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5126BA
RGBrgb(81, 38, 186)
HSLhsl(257, 66%, 44%)
HSVhsv(257, 80%, 73%)
CMYKcmyk(56.5%, 79.6%, 0%, 27.1%)
CIE-LABlab(31.07, 54.39, -70.06)
CIE-LCHlch(31.07, 88.69, 307.82°)
OKLaboklab(43.05% 0.0615 -0.2017)
OKLCHoklch(43.05% 0.211 287)
XYZxyz(12.9467, 6.6800, 47.0520)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126BA #8FBA26
analogous
#2645BA #5126BA #9B26BA
triadic
#5126BA #BA5126 #26BA51
tetradic
#5126BA #BA2645 #8FBA26 #26BA9B
square
#5126BA #BA2645 #8FBA26 #26BA9B
split-complementary
#5126BA #BA9B26 #45BA26
monochromatic
#251154 #3B1C87 #5126BA #6F44D9 #9777E3

Accessibility & contrast

On white

8.99
#5126BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5126BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126BA
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126BA#FFFFFF#000000##FFFFFF
##5126BA1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#1F5270
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5126ba;
/* rgb */ color: rgb(81, 38, 186);
/* oklch */ color: oklch(43.0% 0.211 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e67d0',
    500: '#5126ba',
    950: '#000000',
  },
}
SCSS
$custom: #5126ba;
$custom-light: #8e67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5126ba",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 186
  },
  "hsl": {
    "h": 257.432,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43045,
    "c": 0.21087,
    "h": 287
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#5126BA
secondary
#B1CB71
accent
#E93FB8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5126BA

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

Preview Lab → · Contrast checker → · Palette generator →

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