#511F62#511F62

#511F62 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.120 H 316.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#511F62
RGBrgb(81, 31, 98)
HSLhsl(285, 52%, 25%)
HSVhsv(285, 68%, 38%)
CMYKcmyk(17.3%, 68.4%, 0%, 61.6%)
CIE-LABlab(22.34, 34.78, -29.59)
CIE-LCHlch(22.34, 45.67, 319.61°)
OKLaboklab(34.56% 0.0873 -0.083)
OKLCHoklch(34.56% 0.12 316.5)
XYZxyz(6.0876, 3.6114, 11.9293)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F62 #30621F
analogous
#2F1F62 #511F62 #621F51
triadic
#511F62 #62511F #1F6251
tetradic
#511F62 #622F1F #30621F #1F5162
square
#511F62 #622F1F #30621F #1F5162
split-complementary
#511F62 #51621F #1F622F
monochromatic
#130717 #2B1034 #511F62 #772E90 #9E3CBF

Accessibility & contrast

On white

12.19
#511F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F62
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F62#FFFFFF#000000##FFFFFF
##511F621.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063264
Deuteranopia (green-blind)
#203760
Tritanopia (blue-blind)
#502B3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f62;
/* rgb */ color: rgb(81, 31, 98);
/* oklch */ color: oklch(34.6% 0.120 316.5);
Tailwind
colors: {
  custom: {
    50: '#845f8f',
    500: '#511f62',
    950: '#000000',
  },
}
SCSS
$custom: #511f62;
$custom-light: #845f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511f62",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 284.776,
    "s": 51.938,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34558,
    "c": 0.12047,
    "h": 316.5
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#511F62
secondary
#5B9746
accent
#DB4C71
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F62

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

Preview Lab → · Contrast checker → · Palette generator →

#511F62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva