#5130CF#5130CF

#5130CF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.226 H 282.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5130CF
RGBrgb(81, 48, 207)
HSLhsl(252, 62%, 50%)
HSVhsv(252, 77%, 81%)
CMYKcmyk(60.9%, 76.8%, 0%, 18.8%)
CIE-LABlab(34.74, 55.71, -76.32)
CIE-LCHlch(34.74, 94.48, 306.13°)
OKLaboklab(46.23% 0.0491 -0.2201)
OKLCHoklch(46.23% 0.226 282.6)
XYZxyz(15.7093, 8.3671, 59.8066)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130CF #AECF30
analogous
#305ECF #5130CF #A130CF
triadic
#5130CF #CF5130 #30CF51
tetradic
#5130CF #CF305E #AECF30 #30CFA1
square
#5130CF #CF305E #AECF30 #30CFA1
split-complementary
#5130CF #CFA130 #5ECF30
monochromatic
#2A196C #3E249D #5130CF #7B62DB #A593E6

Accessibility & contrast

On white

7.85
#5130CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5130CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130CF
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130CF#FFFFFF#000000##FFFFFF
##5130CF1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#004CCC
Tritanopia (blue-blind)
#005E7F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5130cf;
/* rgb */ color: rgb(81, 48, 207);
/* oklch */ color: oklch(46.2% 0.226 282.6);
Tailwind
colors: {
  custom: {
    50: '#916ddf',
    500: '#5130cf',
    950: '#000000',
  },
}
SCSS
$custom: #5130cf;
$custom-light: #916ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#5130cf",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 207
  },
  "hsl": {
    "h": 252.453,
    "s": 62.353,
    "l": 50
  },
  "oklch": {
    "l": 0.46225,
    "c": 0.2255,
    "h": 282.6
  },
  "luminance": 0.08368
}

Semantic roles & 50–950 ramp

primary
#5130CF
secondary
#C2D18A
accent
#E542C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5130CF

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

Preview Lab → · Contrast checker → · Palette generator →

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