#511F67#511F67

#511F67 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.126 H 313.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#511F67
RGBrgb(81, 31, 103)
HSLhsl(282, 54%, 26%)
HSVhsv(282, 70%, 40%)
CMYKcmyk(21.4%, 69.9%, 0%, 59.6%)
CIE-LABlab(22.68, 35.94, -32.32)
CIE-LCHlch(22.68, 48.33, 318.04°)
OKLaboklab(34.91% 0.0871 -0.0909)
OKLCHoklch(34.91% 0.126 313.8)
XYZxyz(6.3311, 3.7088, 13.2117)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F67 #35671F
analogous
#2D1F67 #511F67 #671F59
triadic
#511F67 #67511F #1F6751
tetradic
#511F67 #672D1F #35671F #1F5967
square
#511F67 #672D1F #35671F #1F5967
split-complementary
#511F67 #59671F #1F672D
monochromatic
#120718 #2C1138 #511F67 #762D96 #9B3CC4

Accessibility & contrast

On white

12.06
#511F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511F67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F67
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F67#FFFFFF#000000##FFFFFF
##511F671.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#1B3765
Tritanopia (blue-blind)
#4F2D40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511f67;
/* rgb */ color: rgb(81, 31, 103);
/* oklch */ color: oklch(34.9% 0.126 313.8);
Tailwind
colors: {
  custom: {
    50: '#855f93',
    500: '#511f67',
    950: '#000000',
  },
}
SCSS
$custom: #511f67;
$custom-light: #855f93;
$custom-dark: #000000;
JSON
{
  "hex": "#511f67",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 281.667,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34913,
    "c": 0.12596,
    "h": 313.8
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#511F67
secondary
#609B46
accent
#DD4B77
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F67

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

Preview Lab → · Contrast checker → · Palette generator →

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