#513273#513273

#513273 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.7% C 0.110 H 303.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#513273
RGBrgb(81, 50, 115)
HSLhsl(269, 39%, 32%)
HSVhsv(269, 57%, 45%)
CMYKcmyk(29.6%, 56.5%, 0%, 54.9%)
CIE-LABlab(27.49, 28.23, -32.36)
CIE-LCHlch(27.49, 42.94, 311.10°)
OKLaboklab(38.67% 0.0609 -0.0912)
OKLCHoklch(38.67% 0.11 303.7)
XYZxyz(7.6278, 5.2684, 16.8314)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513273 #547332
analogous
#323473 #513273 #713273
triadic
#513273 #735132 #327351
tetradic
#513273 #733234 #547332 #327371
square
#513273 #733234 #547332 #327371
split-complementary
#513273 #737132 #347332
monochromatic
#150D1E #331F48 #513273 #6F459E #8E64BC

Accessibility & contrast

On white

10.23
#513273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#513273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513273
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513273#FFFFFF#000000##FFFFFF
##5132731.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4075
Deuteranopia (green-blind)
#254171
Tritanopia (blue-blind)
#4B3E4D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #513273;
/* rgb */ color: rgb(81, 50, 115);
/* oklch */ color: oklch(38.7% 0.110 303.7);
Tailwind
colors: {
  custom: {
    50: '#846b9c',
    500: '#513273',
    950: '#000000',
  },
}
SCSS
$custom: #513273;
$custom-light: #846b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#513273",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 115
  },
  "hsl": {
    "h": 268.615,
    "s": 39.394,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38671,
    "c": 0.10961,
    "h": 303.7
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#513273
secondary
#82A35D
accent
#CF5997
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #513273

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

Preview Lab → · Contrast checker → · Palette generator →

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