#5130BB#5130BB

#5130BB is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.3% C 0.203 H 285.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5130BB
RGBrgb(81, 48, 187)
HSLhsl(254, 59%, 46%)
HSVhsv(254, 74%, 73%)
CMYKcmyk(56.7%, 74.3%, 0%, 26.7%)
CIE-LABlab(32.81, 49.95, -67.78)
CIE-LCHlch(32.81, 84.20, 306.39°)
OKLaboklab(44.29% 0.0543 -0.1951)
OKLCHoklch(44.29% 0.203 285.5)
XYZxyz(13.4172, 7.4503, 47.7351)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130BB #9ABB30
analogous
#3054BB #5130BB #9630BB
triadic
#5130BB #BB5130 #30BB51
tetradic
#5130BB #BB3054 #9ABB30 #30BB96
square
#5130BB #BB3054 #9ABB30 #30BB96
split-complementary
#5130BB #BB9630 #54BB30
monochromatic
#27175A #3C238A #5130BB #7355D3 #9B86E0

Accessibility & contrast

On white

8.43
#5130BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5130BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130BB
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130BB#FFFFFF#000000##FFFFFF
##5130BB1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0049B8
Tritanopia (blue-blind)
#1D5773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5130bb;
/* rgb */ color: rgb(81, 48, 187);
/* oklch */ color: oklch(44.3% 0.203 285.5);
Tailwind
colors: {
  custom: {
    50: '#8d6cd1',
    500: '#5130bb',
    950: '#000000',
  },
}
SCSS
$custom: #5130bb;
$custom-light: #8d6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5130bb",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 254.245,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44294,
    "c": 0.20255,
    "h": 285.5
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

primary
#5130BB
secondary
#B7C97D
accent
#E245BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5130BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5130BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva