#5130BA#5130BA

#5130BA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.201 H 285.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5130BA
RGBrgb(81, 48, 186)
HSLhsl(254, 59%, 46%)
HSVhsv(254, 74%, 73%)
CMYKcmyk(56.5%, 74.2%, 0%, 27.1%)
CIE-LABlab(32.72, 49.66, -67.34)
CIE-LCHlch(32.72, 83.67, 306.41°)
OKLaboklab(44.2% 0.0545 -0.1939)
OKLCHoklch(44.2% 0.201 285.7)
XYZxyz(13.3105, 7.4076, 47.1733)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130BA #99BA30
analogous
#3054BA #5130BA #9630BA
triadic
#5130BA #BA5130 #30BA51
tetradic
#5130BA #BA3054 #99BA30 #30BA96
square
#5130BA #BA3054 #99BA30 #30BA96
split-complementary
#5130BA #BA9630 #54BA30
monochromatic
#271759 #3C2389 #5130BA #7354D3 #9B85DF

Accessibility & contrast

On white

8.46
#5130BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5130BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130BA
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130BA#FFFFFF#000000##FFFFFF
##5130BA1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#1E5673
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5130ba;
/* rgb */ color: rgb(81, 48, 186);
/* oklch */ color: oklch(44.2% 0.201 285.7);
Tailwind
colors: {
  custom: {
    50: '#8d6cd0',
    500: '#5130ba',
    950: '#000000',
  },
}
SCSS
$custom: #5130ba;
$custom-light: #8d6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5130ba",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 254.348,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.442,
    "c": 0.20138,
    "h": 285.7
  },
  "luminance": 0.07408
}

Semantic roles & 50–950 ramp

primary
#5130BA
secondary
#B7C97D
accent
#E246BD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5130BA

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

Preview Lab → · Contrast checker → · Palette generator →

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