#513BBB#513BBB

#513BBB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.190 H 283.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#513BBB
RGBrgb(81, 59, 187)
HSLhsl(250, 52%, 48%)
HSVhsv(250, 68%, 73%)
CMYKcmyk(56.7%, 68.4%, 0%, 26.7%)
CIE-LABlab(34.93, 44.05, -64.30)
CIE-LCHlch(34.93, 77.94, 304.41°)
OKLaboklab(45.8% 0.0454 -0.185)
OKLCHoklch(45.8% 0.19 283.8)
XYZxyz(13.9242, 8.4643, 47.9041)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BBB #A5BB3B
analogous
#3B65BB #513BBB #913BBB
triadic
#513BBB #BB513B #3BBB51
tetradic
#513BBB #BB3B65 #A5BB3B #3BBB91
square
#513BBB #BB3B65 #A5BB3B #3BBB91
split-complementary
#513BBB #BB913B #65BB3B
monochromatic
#291E5E #3D2C8C #513BBB #7765CE #A093DD

Accessibility & contrast

On white

7.80
#513BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#513BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BBB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BBB#FFFFFF#000000##FFFFFF
##513BBB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#1B5C76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513bbb;
/* rgb */ color: rgb(81, 59, 187);
/* oklch */ color: oklch(45.8% 0.190 283.8);
Tailwind
colors: {
  custom: {
    50: '#8d73d0',
    500: '#513bbb',
    950: '#000000',
  },
}
SCSS
$custom: #513bbb;
$custom-light: #8d73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#513bbb",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 250.313,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45803,
    "c": 0.19048,
    "h": 283.8
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#513BBB
secondary
#BDC88A
accent
#DB4CC3
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513BBB

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

Preview Lab → · Contrast checker → · Palette generator →

#513BBB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva