#5129AB#5129AB

#5129AB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.191 H 289.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5129AB
RGBrgb(81, 41, 171)
HSLhsl(258, 61%, 42%)
HSVhsv(258, 76%, 67%)
CMYKcmyk(52.6%, 76%, 0%, 32.9%)
CIE-LABlab(30.10, 48.86, -62.71)
CIE-LCHlch(30.10, 79.50, 307.92°)
OKLaboklab(41.93% 0.0638 -0.1802)
OKLCHoklch(41.93% 0.191 289.5)
XYZxyz(11.5348, 6.2750, 39.1236)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129AB #83AB29
analogous
#2942AB #5129AB #9229AB
triadic
#5129AB #AB5129 #29AB51
tetradic
#5129AB #AB2942 #83AB29 #29AB92
square
#5129AB #AB2942 #83AB29 #29AB92
split-complementary
#5129AB #AB9229 #42AB29
monochromatic
#221148 #3A1D7A #5129AB #6D40D1 #9271DD

Accessibility & contrast

On white

9.31
#5129AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5129AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5129AB#FFFFFF#000000##FFFFFF
##5129AB1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#2F4D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5129ab;
/* rgb */ color: rgb(81, 41, 171);
/* oklch */ color: oklch(41.9% 0.191 289.5);
Tailwind
colors: {
  custom: {
    50: '#8b67c5',
    500: '#5129ab',
    950: '#000000',
  },
}
SCSS
$custom: #5129ab;
$custom-light: #8b67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5129ab",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 258.462,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.1912,
    "h": 289.5
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#5129AB
secondary
#A9C46C
accent
#E443B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129AB

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

Preview Lab → · Contrast checker → · Palette generator →

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