#5130B2#5130B2

#5130B2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.192 H 287.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5130B2
RGBrgb(81, 48, 178)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 73%, 70%)
CMYKcmyk(54.5%, 73%, 0%, 30.2%)
CIE-LABlab(31.98, 47.34, -63.80)
CIE-LCHlch(31.98, 79.45, 306.58°)
OKLaboklab(43.46% 0.0564 -0.1835)
OKLCHoklch(43.46% 0.192 287.1)
XYZxyz(12.4838, 7.0769, 42.8190)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130B2 #91B230
analogous
#3050B2 #5130B2 #9230B2
triadic
#5130B2 #B25130 #30B251
tetradic
#5130B2 #B23050 #91B230 #30B292
square
#5130B2 #B23050 #91B230 #30B292
split-complementary
#5130B2 #B29230 #50B230
monochromatic
#251652 #3B2382 #5130B2 #7050D0 #9780DD

Accessibility & contrast

On white

8.69
#5130B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5130B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130B2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130B2#FFFFFF#000000##FFFFFF
##5130B21.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#28536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5130b2;
/* rgb */ color: rgb(81, 48, 178);
/* oklch */ color: oklch(43.5% 0.192 287.1);
Tailwind
colors: {
  custom: {
    50: '#8c6cca',
    500: '#5130b2',
    950: '#000000',
  },
}
SCSS
$custom: #5130b2;
$custom-light: #8c6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5130b2",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 255.231,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43456,
    "c": 0.19197,
    "h": 287.1
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#5130B2
secondary
#B2C678
accent
#E147BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5130B2

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

Preview Lab → · Contrast checker → · Palette generator →

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