#5130B5#5130B5

#5130B5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.196 H 286.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5130B5
RGBrgb(81, 48, 181)
HSLhsl(255, 58%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(55.2%, 73.5%, 0%, 29%)
CIE-LABlab(32.26, 48.21, -65.14)
CIE-LCHlch(32.26, 81.04, 306.51°)
OKLaboklab(43.73% 0.0557 -0.1874)
OKLCHoklch(43.73% 0.196 286.6)
XYZxyz(12.7883, 7.1987, 44.4227)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130B5 #94B530
analogous
#3052B5 #5130B5 #9330B5
triadic
#5130B5 #B55130 #30B551
tetradic
#5130B5 #B53052 #94B530 #30B593
square
#5130B5 #B53052 #94B530 #30B593
split-complementary
#5130B5 #B59330 #52B530
monochromatic
#261654 #3B2385 #5130B5 #7151D1 #9882DE

Accessibility & contrast

On white

8.61
#5130B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5130B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130B5
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130B5#FFFFFF#000000##FFFFFF
##5130B51.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#255470
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5130b5;
/* rgb */ color: rgb(81, 48, 181);
/* oklch */ color: oklch(43.7% 0.196 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c6ccc',
    500: '#5130b5',
    950: '#000000',
  },
}
SCSS
$custom: #5130b5;
$custom-light: #8c6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5130b5",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 254.887,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43733,
    "c": 0.19552,
    "h": 286.6
  },
  "luminance": 0.07199
}

Semantic roles & 50–950 ramp

primary
#5130B5
secondary
#B4C77A
accent
#E146BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5130B5

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

Preview Lab → · Contrast checker → · Palette generator →

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