#5129B3#5129B3

#5129B3 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.200 H 287.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5129B3
RGBrgb(81, 41, 179)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 77%, 70%)
CMYKcmyk(54.7%, 77.1%, 0%, 29.8%)
CIE-LABlab(30.85, 51.10, -66.25)
CIE-LCHlch(30.85, 83.67, 307.64°)
OKLaboklab(42.69% 0.0616 -0.1906)
OKLCHoklch(42.69% 0.2 287.9)
XYZxyz(12.3206, 6.5892, 43.2617)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129B3 #8BB329
analogous
#2946B3 #5129B3 #9629B3
triadic
#5129B3 #B35129 #29B351
tetradic
#5129B3 #B32946 #8BB329 #29B396
square
#5129B3 #B32946 #8BB329 #29B396
split-complementary
#5129B3 #B39629 #46B329
monochromatic
#24124F #3A1E81 #5129B3 #6E45D4 #9577E0

Accessibility & contrast

On white

9.06
#5129B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5129B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129B3
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129B3#FFFFFF#000000##FFFFFF
##5129B31.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#28506D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5129b3;
/* rgb */ color: rgb(81, 41, 179);
/* oklch */ color: oklch(42.7% 0.200 287.9);
Tailwind
colors: {
  custom: {
    50: '#8d68cb',
    500: '#5129b3',
    950: '#000000',
  },
}
SCSS
$custom: #5129b3;
$custom-light: #8d68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5129b3",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 179
  },
  "hsl": {
    "h": 257.391,
    "s": 62.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4269,
    "c": 0.2003,
    "h": 287.9
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#5129B3
secondary
#AEC770
accent
#E642B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129B3

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

Preview Lab → · Contrast checker → · Palette generator →

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