#5129B0#5129B0

#5129B0 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.197 H 288.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5129B0
RGBrgb(81, 41, 176)
HSLhsl(258, 62%, 43%)
HSVhsv(258, 77%, 69%)
CMYKcmyk(54%, 76.7%, 0%, 31%)
CIE-LABlab(30.57, 50.26, -64.93)
CIE-LCHlch(30.57, 82.11, 307.74°)
OKLaboklab(42.4% 0.0624 -0.1867)
OKLCHoklch(42.4% 0.197 288.5)
XYZxyz(12.0204, 6.4692, 41.6812)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129B0 #88B029
analogous
#2944B0 #5129B0 #9529B0
triadic
#5129B0 #B05129 #29B051
tetradic
#5129B0 #B02944 #88B029 #29B095
square
#5129B0 #B02944 #88B029 #29B095
split-complementary
#5129B0 #B09529 #44B029
monochromatic
#23124D #3A1D7E #5129B0 #6E43D3 #9475DF

Accessibility & contrast

On white

9.15
#5129B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5129B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129B0
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129B0#FFFFFF#000000##FFFFFF
##5129B01.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0044AE
Tritanopia (blue-blind)
#2B4F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5129b0;
/* rgb */ color: rgb(81, 41, 176);
/* oklch */ color: oklch(42.4% 0.197 288.5);
Tailwind
colors: {
  custom: {
    50: '#8c68c9',
    500: '#5129b0',
    950: '#000000',
  },
}
SCSS
$custom: #5129b0;
$custom-light: #8c68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5129b0",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 176
  },
  "hsl": {
    "h": 257.778,
    "s": 62.212,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.1969,
    "h": 288.5
  },
  "luminance": 0.0647
}

Semantic roles & 50–950 ramp

primary
#5129B0
secondary
#ACC66F
accent
#E543B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129B0

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

Preview Lab → · Contrast checker → · Palette generator →

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