#5129A2#5129A2

#5129A2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.181 H 291.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5129A2
RGBrgb(81, 41, 162)
HSLhsl(260, 60%, 40%)
HSVhsv(260, 75%, 64%)
CMYKcmyk(50%, 74.7%, 0%, 36.5%)
CIE-LABlab(29.27, 46.35, -58.64)
CIE-LCHlch(29.27, 74.74, 308.32°)
OKLaboklab(41.1% 0.0661 -0.1683)
OKLCHoklch(41.1% 0.181 291.4)
XYZxyz(10.7060, 5.9434, 34.7585)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129A2 #7AA229
analogous
#293DA2 #5129A2 #8E29A2
triadic
#5129A2 #A25129 #29A251
tetradic
#5129A2 #A2293D #7AA229 #29A28E
square
#5129A2 #A2293D #7AA229 #29A28E
split-complementary
#5129A2 #A28E29 #3DA229
monochromatic
#201040 #391D71 #5129A2 #6B3BCD #906CDA

Accessibility & contrast

On white

9.59
#5129A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5129A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5129A2#FFFFFF#000000##FFFFFF
##5129A21.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#364963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5129a2;
/* rgb */ color: rgb(81, 41, 162);
/* oklch */ color: oklch(41.1% 0.181 291.4);
Tailwind
colors: {
  custom: {
    50: '#8a67bf',
    500: '#5129a2',
    950: '#000000',
  },
}
SCSS
$custom: #5129a2;
$custom-light: #8a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5129a2",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 259.835,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41096,
    "c": 0.18082,
    "h": 291.4
  },
  "luminance": 0.05944
}

Semantic roles & 50–950 ramp

primary
#5129A2
secondary
#A3C067
accent
#E345AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #5129A2

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

Preview Lab → · Contrast checker → · Palette generator →

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