#5126AE#5126AE

#5126AE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.198 H 289.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5126AE
RGBrgb(81, 38, 174)
HSLhsl(259, 64%, 42%)
HSVhsv(259, 78%, 68%)
CMYKcmyk(53.4%, 78.2%, 0%, 31.8%)
CIE-LABlab(29.89, 51.10, -64.85)
CIE-LCHlch(29.89, 82.56, 308.24°)
OKLaboklab(41.87% 0.0652 -0.1865)
OKLCHoklch(41.87% 0.198 289.3)
XYZxyz(11.7242, 6.1910, 40.6134)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5126AE #83AE26
analogous
#263FAE #5126AE #9526AE
triadic
#5126AE #AE5126 #26AE51
tetradic
#5126AE #AE263F #83AE26 #26AE95
square
#5126AE #AE263F #83AE26 #26AE95
split-complementary
#5126AE #AE9526 #3FAE26
monochromatic
#22104A #3A1B7C #5126AE #6D3DD5 #926FE0

Accessibility & contrast

On white

9.38
#5126AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5126AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5126AE
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5126AE#FFFFFF#000000##FFFFFF
##5126AE1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2D4D69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5126ae;
/* rgb */ color: rgb(81, 38, 174);
/* oklch */ color: oklch(41.9% 0.198 289.3);
Tailwind
colors: {
  custom: {
    50: '#8c66c7',
    500: '#5126ae',
    950: '#000000',
  },
}
SCSS
$custom: #5126ae;
$custom-light: #8c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5126ae",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 174
  },
  "hsl": {
    "h": 258.971,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41872,
    "c": 0.19754,
    "h": 289.3
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

primary
#5126AE
secondary
#A9C66A
accent
#E741B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5126AE

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

Preview Lab → · Contrast checker → · Palette generator →

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