#5126AD#5126AD

#5126AD is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.196 H 289.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5126AD
RGBrgb(81, 38, 173)
HSLhsl(259, 64%, 41%)
HSVhsv(259, 78%, 68%)
CMYKcmyk(53.2%, 78%, 0%, 32.2%)
CIE-LABlab(29.79, 50.82, -64.41)
CIE-LCHlch(29.79, 82.05, 308.28°)
OKLaboklab(41.78% 0.0655 -0.1852)
OKLCHoklch(41.78% 0.196 289.5)
XYZxyz(11.6271, 6.1521, 40.1019)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126AD #82AD26
analogous
#263FAD #5126AD #9526AD
triadic
#5126AD #AD5126 #26AD51
tetradic
#5126AD #AD263F #82AD26 #26AD95
square
#5126AD #AD263F #82AD26 #26AD95
split-complementary
#5126AD #AD9526 #3FAD26
monochromatic
#221049 #3A1B7B #5126AD #6C3CD4 #926EDF

Accessibility & contrast

On white

9.41
#5126AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5126AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126AD
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126AD#FFFFFF#000000##FFFFFF
##5126AD1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B1
Deuteranopia (green-blind)
#0043AB
Tritanopia (blue-blind)
#2E4D69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5126ad;
/* rgb */ color: rgb(81, 38, 173);
/* oklch */ color: oklch(41.8% 0.196 289.5);
Tailwind
colors: {
  custom: {
    50: '#8c66c7',
    500: '#5126ad',
    950: '#000000',
  },
}
SCSS
$custom: #5126ad;
$custom-light: #8c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5126ad",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 259.111,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.19643,
    "h": 289.5
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#5126AD
secondary
#A8C669
accent
#E741B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126AD

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

Preview Lab → · Contrast checker → · Palette generator →

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