#5129AD#5129AD

#5129AD is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.193 H 289.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5129AD
RGBrgb(81, 41, 173)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 76%, 68%)
CMYKcmyk(53.2%, 76.3%, 0%, 32.2%)
CIE-LABlab(30.28, 49.42, -63.60)
CIE-LCHlch(30.28, 80.54, 307.85°)
OKLaboklab(42.12% 0.0632 -0.1829)
OKLCHoklch(42.12% 0.193 289.1)
XYZxyz(11.7269, 6.3518, 40.1352)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129AD #85AD29
analogous
#2943AD #5129AD #9329AD
triadic
#5129AD #AD5129 #29AD51
tetradic
#5129AD #AD2943 #85AD29 #29AD93
square
#5129AD #AD2943 #85AD29 #29AD93
split-complementary
#5129AD #AD9329 #43AD29
monochromatic
#23124A #3A1D7C #5129AD #6D41D2 #9373DE

Accessibility & contrast

On white

9.25
#5129AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5129AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5129AD#FFFFFF#000000##FFFFFF
##5129AD1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#2E4E6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5129ad;
/* rgb */ color: rgb(81, 41, 173);
/* oklch */ color: oklch(42.1% 0.193 289.1);
Tailwind
colors: {
  custom: {
    50: '#8c67c7',
    500: '#5129ad',
    950: '#000000',
  },
}
SCSS
$custom: #5129ad;
$custom-light: #8c67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5129ad",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 173
  },
  "hsl": {
    "h": 258.182,
    "s": 61.682,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42118,
    "c": 0.19348,
    "h": 289.1
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5129AD

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

Preview Lab → · Contrast checker → · Palette generator →

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