#513366#513366

#513366 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.0% C 0.090 H 309.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#513366
RGBrgb(81, 51, 102)
HSLhsl(275, 33%, 30%)
HSVhsv(275, 50%, 40%)
CMYKcmyk(20.6%, 50%, 0%, 60%)
CIE-LABlab(26.95, 24.20, -24.88)
CIE-LCHlch(26.95, 34.71, 314.20°)
OKLaboklab(38.02% 0.0579 -0.0694)
OKLCHoklch(38.02% 0.09 309.9)
XYZxyz(6.9750, 5.0764, 13.1802)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513366 #486633
analogous
#383366 #513366 #663361
triadic
#513366 #665133 #336651
tetradic
#513366 #663833 #486633 #336166
square
#513366 #663833 #486633 #336166
split-complementary
#513366 #616633 #336638
monochromatic
#100A14 #311F3D #513366 #71478F #9163B1

Accessibility & contrast

On white

10.42
#513366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#513366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513366
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513366#FFFFFF#000000##FFFFFF
##5133661.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273E68
Deuteranopia (green-blind)
#2F4065
Tritanopia (blue-blind)
#4E3B47
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #513366;
/* rgb */ color: rgb(81, 51, 102);
/* oklch */ color: oklch(38.0% 0.090 309.9);
Tailwind
colors: {
  custom: {
    50: '#836b92',
    500: '#513366',
    950: '#000000',
  },
}
SCSS
$custom: #513366;
$custom-light: #836b92;
$custom-dark: #000000;
JSON
{
  "hex": "#513366",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 102
  },
  "hsl": {
    "h": 275.294,
    "s": 33.333,
    "l": 30
  },
  "oklch": {
    "l": 0.38022,
    "c": 0.09038,
    "h": 309.9
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#513366
secondary
#75975E
accent
#C95E8A
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B070D
muted
#7C7A7E

Preview Lab

Preview with #513366

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

Preview Lab → · Contrast checker → · Palette generator →

#513366 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva