#511862#511862

#511862 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.131 H 317.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#511862
RGBrgb(81, 24, 98)
HSLhsl(286, 61%, 24%)
HSVhsv(286, 76%, 38%)
CMYKcmyk(17.3%, 75.5%, 0%, 61.6%)
CIE-LABlab(21.15, 38.12, -31.50)
CIE-LCHlch(21.15, 49.45, 320.43°)
OKLaboklab(33.7% 0.096 -0.0885)
OKLCHoklch(33.7% 0.131 317.3)
XYZxyz(5.9243, 3.2847, 11.8749)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511862 #296218
analogous
#2C1862 #511862 #62184E
triadic
#511862 #625118 #186251
tetradic
#511862 #622C18 #296218 #184E62
square
#511862 #622C18 #296218 #184E62
split-complementary
#511862 #4E6218 #18622C
monochromatic
#140619 #280C31 #511862 #7A2493 #A230C4

Accessibility & contrast

On white

12.68
#511862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511862
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511862#FFFFFF#000000##FFFFFF
##5118621.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#1A3560
Tritanopia (blue-blind)
#50273B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511862;
/* rgb */ color: rgb(81, 24, 98);
/* oklch */ color: oklch(33.7% 0.131 317.3);
Tailwind
colors: {
  custom: {
    50: '#855b8f',
    500: '#511862',
    950: '#000000',
  },
}
SCSS
$custom: #511862;
$custom-light: #855b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511862",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 286.216,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.13057,
    "h": 317.3
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#511862
secondary
#52983E
accent
#E44469
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511862

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

Preview Lab → · Contrast checker → · Palette generator →

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