#5129AA#5129AA

#5129AA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.190 H 289.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5129AA
RGBrgb(81, 41, 170)
HSLhsl(259, 61%, 41%)
HSVhsv(259, 76%, 67%)
CMYKcmyk(52.4%, 75.9%, 0%, 33.3%)
CIE-LABlab(30.00, 48.58, -62.26)
CIE-LCHlch(30.00, 78.97, 307.96°)
OKLaboklab(41.84% 0.064 -0.1789)
OKLCHoklch(41.84% 0.19 289.7)
XYZxyz(11.4399, 6.2370, 38.6235)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129AA #82AA29
analogous
#2942AA #5129AA #9229AA
triadic
#5129AA #AA5129 #29AA51
tetradic
#5129AA #AA2942 #82AA29 #29AA92
square
#5129AA #AA2942 #82AA29 #29AA92
split-complementary
#5129AA #AA9229 #42AA29
monochromatic
#221147 #3A1D79 #5129AA #6C3FD1 #9271DD

Accessibility & contrast

On white

9.34
#5129AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5129AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5129AA#FFFFFF#000000##FFFFFF
##5129AA1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#304D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5129aa;
/* rgb */ color: rgb(81, 41, 170);
/* oklch */ color: oklch(41.8% 0.190 289.7);
Tailwind
colors: {
  custom: {
    50: '#8b67c4',
    500: '#5129aa',
    950: '#000000',
  },
}
SCSS
$custom: #5129aa;
$custom-light: #8b67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5129aa",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 170
  },
  "hsl": {
    "h": 258.605,
    "s": 61.137,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41836,
    "c": 0.19005,
    "h": 289.7
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#5129AA
secondary
#A8C46B
accent
#E444B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129AA

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

Preview Lab → · Contrast checker → · Palette generator →

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