#511462#511462

#511462 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.136 H 317.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#511462
RGBrgb(81, 20, 98)
HSLhsl(287, 66%, 23%)
HSVhsv(287, 80%, 38%)
CMYKcmyk(17.3%, 79.6%, 0%, 61.6%)
CIE-LABlab(20.56, 39.79, -32.45)
CIE-LCHlch(20.56, 51.34, 320.80°)
OKLaboklab(33.28% 0.1003 -0.0912)
OKLCHoklch(33.28% 0.136 317.7)
XYZxyz(5.8478, 3.1317, 11.8494)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511462 #256214
analogous
#2A1462 #511462 #62144C
triadic
#511462 #625114 #146251
tetradic
#511462 #622A14 #256214 #144C62
square
#511462 #622A14 #256214 #144C62
split-complementary
#511462 #4C6214 #14622A
monochromatic
#150519 #270A2F #511462 #7B1E95 #A529C8

Accessibility & contrast

On white

12.91
#511462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511462
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511462#FFFFFF#000000##FFFFFF
##5114621.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#173360
Tritanopia (blue-blind)
#50253A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511462;
/* rgb */ color: rgb(81, 20, 98);
/* oklch */ color: oklch(33.3% 0.136 317.7);
Tailwind
colors: {
  custom: {
    50: '#85598f',
    500: '#511462',
    950: '#000000',
  },
}
SCSS
$custom: #511462;
$custom-light: #85598f;
$custom-dark: #000000;
JSON
{
  "hex": "#511462",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 286.923,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33285,
    "c": 0.1356,
    "h": 317.7
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#511462
secondary
#4E9938
accent
#E93F64
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511462

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

Preview Lab → · Contrast checker → · Palette generator →

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