#513271#513271

#513271 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.5% C 0.107 H 304.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#513271
RGBrgb(81, 50, 113)
HSLhsl(270, 39%, 32%)
HSVhsv(270, 56%, 44%)
CMYKcmyk(28.3%, 55.8%, 0%, 55.7%)
CIE-LABlab(27.36, 27.69, -31.29)
CIE-LCHlch(27.36, 41.78, 311.51°)
OKLaboklab(38.54% 0.0607 -0.088)
OKLCHoklch(38.54% 0.107 304.6)
XYZxyz(7.5139, 5.2228, 16.2318)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513271 #527132
analogous
#323371 #513271 #713271
triadic
#513271 #715132 #327151
tetradic
#513271 #713233 #527132 #327171
square
#513271 #713233 #527132 #327171
split-complementary
#513271 #717132 #337132
monochromatic
#140C1C #331F47 #513271 #6F459B #8E63BA

Accessibility & contrast

On white

10.27
#513271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#513271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513271
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513271#FFFFFF#000000##FFFFFF
##5132711.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#27416F
Tritanopia (blue-blind)
#4C3E4C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #513271;
/* rgb */ color: rgb(81, 50, 113);
/* oklch */ color: oklch(38.5% 0.107 304.6);
Tailwind
colors: {
  custom: {
    50: '#846b9a',
    500: '#513271',
    950: '#000000',
  },
}
SCSS
$custom: #513271;
$custom-light: #846b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#513271",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 269.524,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38537,
    "c": 0.10694,
    "h": 304.6
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#513271
secondary
#80A25D
accent
#CF5995
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #513271

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

Preview Lab → · Contrast checker → · Palette generator →

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