#5130C2#5130C2

#5130C2 is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 45.0% C 0.211 H 284.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5130C2
RGBrgb(81, 48, 194)
HSLhsl(254, 60%, 47%)
HSVhsv(254, 75%, 76%)
CMYKcmyk(58.2%, 75.3%, 0%, 23.9%)
CIE-LABlab(33.47, 51.97, -70.81)
CIE-LCHlch(33.47, 87.84, 306.28°)
OKLaboklab(44.96% 0.0525 -0.204)
OKLCHoklch(44.96% 0.211 284.4)
XYZxyz(14.1849, 7.7574, 51.7783)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130C2 #A1C230
analogous
#3058C2 #5130C2 #9A30C2
triadic
#5130C2 #C25130 #30C251
tetradic
#5130C2 #C23058 #A1C230 #30C29A
square
#5130C2 #C23058 #A1C230 #30C29A
split-complementary
#5130C2 #C29A30 #58C230
monochromatic
#281860 #3D2491 #5130C2 #7559D6 #9E8AE2

Accessibility & contrast

On white

8.23
#5130C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5130C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130C2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130C2#FFFFFF#000000##FFFFFF
##5130C21.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#0F5977
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5130c2;
/* rgb */ color: rgb(81, 48, 194);
/* oklch */ color: oklch(45.0% 0.211 284.4);
Tailwind
colors: {
  custom: {
    50: '#8f6cd6',
    500: '#5130c2',
    950: '#000000',
  },
}
SCSS
$custom: #5130c2;
$custom-light: #8f6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5130c2",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 194
  },
  "hsl": {
    "h": 253.562,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4496,
    "c": 0.21067,
    "h": 284.4
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#5130C2
secondary
#BBCC82
accent
#E344C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5130C2

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

Preview Lab → · Contrast checker → · Palette generator →

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