#5130C4#5130C4

#5130C4 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.213 H 284.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5130C4
RGBrgb(81, 48, 196)
HSLhsl(253, 61%, 48%)
HSVhsv(253, 76%, 77%)
CMYKcmyk(58.7%, 75.5%, 0%, 23.1%)
CIE-LABlab(33.66, 52.55, -71.67)
CIE-LCHlch(33.66, 88.87, 306.25°)
OKLaboklab(45.15% 0.052 -0.2065)
OKLCHoklch(45.15% 0.213 284.1)
XYZxyz(14.4110, 7.8478, 52.9692)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130C4 #A3C430
analogous
#3059C4 #5130C4 #9B30C4
triadic
#5130C4 #C45130 #30C451
tetradic
#5130C4 #C43059 #A3C430 #30C49B
square
#5130C4 #C43059 #A3C430 #30C49B
split-complementary
#5130C4 #C49B30 #59C430
monochromatic
#281862 #3D2493 #5130C4 #765AD7 #9F8CE3

Accessibility & contrast

On white

8.17
#5130C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5130C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130C4
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130C4#FFFFFF#000000##FFFFFF
##5130C41.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C8
Deuteranopia (green-blind)
#004AC1
Tritanopia (blue-blind)
#085A78
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5130c4;
/* rgb */ color: rgb(81, 48, 196);
/* oklch */ color: oklch(45.2% 0.213 284.1);
Tailwind
colors: {
  custom: {
    50: '#8f6cd7',
    500: '#5130c4',
    950: '#000000',
  },
}
SCSS
$custom: #5130c4;
$custom-light: #8f6cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5130c4",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 196
  },
  "hsl": {
    "h": 253.378,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45152,
    "c": 0.21296,
    "h": 284.1
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#5130C4
secondary
#BCCD83
accent
#E444C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5130C4

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

Preview Lab → · Contrast checker → · Palette generator →

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