#5130BC#5130BC

#5130BC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.204 H 285.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5130BC
RGBrgb(81, 48, 188)
HSLhsl(254, 59%, 46%)
HSVhsv(254, 74%, 74%)
CMYKcmyk(56.9%, 74.5%, 0%, 26.3%)
CIE-LABlab(32.90, 50.24, -68.21)
CIE-LCHlch(32.90, 84.72, 306.37°)
OKLaboklab(44.39% 0.054 -0.1964)
OKLCHoklch(44.39% 0.204 285.4)
XYZxyz(13.5246, 7.4933, 48.3009)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130BC #9BBC30
analogous
#3055BC #5130BC #9730BC
triadic
#5130BC #BC5130 #30BC51
tetradic
#5130BC #BC3055 #9BBC30 #30BC97
square
#5130BC #BC3055 #9BBC30 #30BC97
split-complementary
#5130BC #BC9730 #55BC30
monochromatic
#27175A #3C248B #5130BC #7355D4 #9B86E0

Accessibility & contrast

On white

8.40
#5130BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5130BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130BC
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130BC#FFFFFF#000000##FFFFFF
##5130BC1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#1B5774
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5130bc;
/* rgb */ color: rgb(81, 48, 188);
/* oklch */ color: oklch(44.4% 0.204 285.4);
Tailwind
colors: {
  custom: {
    50: '#8e6cd1',
    500: '#5130bc',
    950: '#000000',
  },
}
SCSS
$custom: #5130bc;
$custom-light: #8e6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5130bc",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 188
  },
  "hsl": {
    "h": 254.143,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44388,
    "c": 0.20371,
    "h": 285.4
  },
  "luminance": 0.07494
}

Semantic roles & 50–950 ramp

primary
#5130BC
secondary
#B8CA7E
accent
#E345BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5130BC

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

Preview Lab → · Contrast checker → · Palette generator →

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