#5129A5#5129A5

#5129A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.184 H 290.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5129A5
RGBrgb(81, 41, 165)
HSLhsl(259, 60%, 40%)
HSVhsv(259, 75%, 65%)
CMYKcmyk(50.9%, 75.2%, 0%, 35.3%)
CIE-LABlab(29.54, 47.18, -60.01)
CIE-LCHlch(29.54, 76.33, 308.18°)
OKLaboklab(41.37% 0.0653 -0.1723)
OKLCHoklch(41.37% 0.184 290.8)
XYZxyz(10.9759, 6.0514, 36.1797)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129A5 #7DA529
analogous
#293FA5 #5129A5 #8F29A5
triadic
#5129A5 #A55129 #29A551
tetradic
#5129A5 #A5293F #7DA529 #29A58F
square
#5129A5 #A5293F #7DA529 #29A58F
split-complementary
#5129A5 #A58F29 #3FA529
monochromatic
#211143 #391D74 #5129A5 #6C3DCF #916EDB

Accessibility & contrast

On white

9.50
#5129A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5129A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5129A5#FFFFFF#000000##FFFFFF
##5129A51.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#344B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5129a5;
/* rgb */ color: rgb(81, 41, 165);
/* oklch */ color: oklch(41.4% 0.184 290.8);
Tailwind
colors: {
  custom: {
    50: '#8b67c1',
    500: '#5129a5',
    950: '#000000',
  },
}
SCSS
$custom: #5129a5;
$custom-light: #8b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5129a5",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 259.355,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41371,
    "c": 0.1843,
    "h": 290.8
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#5129A5
secondary
#A5C268
accent
#E344B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5129A5

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

Preview Lab → · Contrast checker → · Palette generator →

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