#5129AC#5129AC

#5129AC is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.192 H 289.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5129AC
RGBrgb(81, 41, 172)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 76%, 67%)
CMYKcmyk(52.9%, 76.2%, 0%, 32.5%)
CIE-LABlab(30.19, 49.14, -63.16)
CIE-LCHlch(30.19, 80.02, 307.88°)
OKLaboklab(42.02% 0.0635 -0.1816)
OKLCHoklch(42.02% 0.192 289.3)
XYZxyz(11.6305, 6.3132, 39.6275)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129AC #84AC29
analogous
#2942AC #5129AC #9329AC
triadic
#5129AC #AC5129 #29AC51
tetradic
#5129AC #AC2942 #84AC29 #29AC93
square
#5129AC #AC2942 #84AC29 #29AC93
split-complementary
#5129AC #AC9329 #42AC29
monochromatic
#221149 #3A1D7B #5129AC #6D41D2 #9372DD

Accessibility & contrast

On white

9.28
#5129AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5129AC#FFFFFF#000000##FFFFFF
##5129AC1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#2E4D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5129ac;
/* rgb */ color: rgb(81, 41, 172);
/* oklch */ color: oklch(42.0% 0.192 289.3);
Tailwind
colors: {
  custom: {
    50: '#8c67c6',
    500: '#5129ac',
    950: '#000000',
  },
}
SCSS
$custom: #5129ac;
$custom-light: #8c67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5129ac",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 172
  },
  "hsl": {
    "h": 258.321,
    "s": 61.502,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42024,
    "c": 0.19234,
    "h": 289.3
  },
  "luminance": 0.06314
}

Semantic roles & 50–950 ramp

primary
#5129AC
secondary
#AAC56C
accent
#E543B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129AC

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

Preview Lab → · Contrast checker → · Palette generator →

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