#5126AB#5126AB

#5126AB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.194 H 289.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5126AB
RGBrgb(81, 38, 171)
HSLhsl(259, 64%, 41%)
HSVhsv(259, 78%, 67%)
CMYKcmyk(52.6%, 77.8%, 0%, 32.9%)
CIE-LABlab(29.60, 50.27, -63.52)
CIE-LCHlch(29.60, 81.01, 308.36°)
OKLaboklab(41.58% 0.0661 -0.1826)
OKLCHoklch(41.58% 0.194 289.9)
XYZxyz(11.4350, 6.0753, 39.0903)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126AB #80AB26
analogous
#263EAB #5126AB #9326AB
triadic
#5126AB #AB5126 #26AB51
tetradic
#5126AB #AB263E #80AB26 #26AB93
square
#5126AB #AB263E #80AB26 #26AB93
split-complementary
#5126AB #AB9326 #3EAB26
monochromatic
#221047 #391B79 #5126AB #6C3BD3 #926DDF

Accessibility & contrast

On white

9.48
#5126AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5126AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126AB
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126AB#FFFFFF#000000##FFFFFF
##5126AB1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#304C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5126ab;
/* rgb */ color: rgb(81, 38, 171);
/* oklch */ color: oklch(41.6% 0.194 289.9);
Tailwind
colors: {
  custom: {
    50: '#8c66c5',
    500: '#5126ab',
    950: '#000000',
  },
}
SCSS
$custom: #5126ab;
$custom-light: #8c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5126ab",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 259.398,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41584,
    "c": 0.19419,
    "h": 289.9
  },
  "luminance": 0.06076
}

Semantic roles & 50–950 ramp

primary
#5126AB
secondary
#A7C568
accent
#E741B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126AB

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

Preview Lab → · Contrast checker → · Palette generator →

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