#5129AE#5129AE

#5129AE is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.195 H 288.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5129AE
RGBrgb(81, 41, 174)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 76%, 68%)
CMYKcmyk(53.4%, 76.4%, 0%, 31.8%)
CIE-LABlab(30.38, 49.70, -64.05)
CIE-LCHlch(30.38, 81.07, 307.81°)
OKLaboklab(42.21% 0.063 -0.1842)
OKLCHoklch(42.21% 0.195 288.9)
XYZxyz(11.8240, 6.3906, 40.6467)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129AE #86AE29
analogous
#2944AE #5129AE #9329AE
triadic
#5129AE #AE5129 #29AE51
tetradic
#5129AE #AE2944 #86AE29 #29AE93
square
#5129AE #AE2944 #86AE29 #29AE93
split-complementary
#5129AE #AE9329 #44AE29
monochromatic
#23124B #3A1D7C #5129AE #6D42D2 #9373DE

Accessibility & contrast

On white

9.22
#5129AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5129AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129AE
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129AE#FFFFFF#000000##FFFFFF
##5129AE1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#2D4E6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5129ae;
/* rgb */ color: rgb(81, 41, 174);
/* oklch */ color: oklch(42.2% 0.195 288.9);
Tailwind
colors: {
  custom: {
    50: '#8c67c7',
    500: '#5129ae',
    950: '#000000',
  },
}
SCSS
$custom: #5129ae;
$custom-light: #8c67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5129ae",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 174
  },
  "hsl": {
    "h": 258.045,
    "s": 61.86,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42213,
    "c": 0.19462,
    "h": 288.9
  },
  "luminance": 0.06391
}

Semantic roles & 50–950 ramp

primary
#5129AE
secondary
#ABC56D
accent
#E543B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129AE

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

Preview Lab → · Contrast checker → · Palette generator →

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