#5129B4#5129B4

#5129B4 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.201 H 287.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5129B4
RGBrgb(81, 41, 180)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 77%, 71%)
CMYKcmyk(55%, 77.2%, 0%, 29.4%)
CIE-LABlab(30.95, 51.37, -66.69)
CIE-LCHlch(30.95, 84.18, 307.61°)
OKLaboklab(42.79% 0.0613 -0.1919)
OKLCHoklch(42.79% 0.201 287.7)
XYZxyz(12.4221, 6.6298, 43.7963)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129B4 #8CB429
analogous
#2946B4 #5129B4 #9629B4
triadic
#5129B4 #B45129 #29B451
tetradic
#5129B4 #B42946 #8CB429 #29B496
square
#5129B4 #B42946 #8CB429 #29B496
split-complementary
#5129B4 #B49629 #46B429
monochromatic
#241250 #3B1E82 #5129B4 #6F45D5 #9577E0

Accessibility & contrast

On white

9.03
#5129B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5129B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129B4
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129B4#FFFFFF#000000##FFFFFF
##5129B41.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#27516E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5129b4;
/* rgb */ color: rgb(81, 41, 180);
/* oklch */ color: oklch(42.8% 0.201 287.7);
Tailwind
colors: {
  custom: {
    50: '#8d68cc',
    500: '#5129b4',
    950: '#000000',
  },
}
SCSS
$custom: #5129b4;
$custom-light: #8d68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5129b4",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 180
  },
  "hsl": {
    "h": 257.266,
    "s": 62.896,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42786,
    "c": 0.20143,
    "h": 287.7
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#5129B4
secondary
#AFC871
accent
#E642B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129B4

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

Preview Lab → · Contrast checker → · Palette generator →

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