#511B8F#511B8F

#511B8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.174 H 298.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#511B8F
RGBrgb(81, 27, 143)
HSLhsl(268, 68%, 33%)
HSVhsv(268, 81%, 56%)
CMYKcmyk(43.4%, 81.1%, 0%, 43.9%)
CIE-LABlab(25.31, 47.64, -53.48)
CIE-LCHlch(25.31, 71.62, 311.70°)
OKLaboklab(37.79% 0.0831 -0.1531)
OKLCHoklch(37.79% 0.174 298.5)
XYZxyz(8.7419, 4.5162, 26.3924)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B8F #598F1B
analogous
#1B1F8F #511B8F #8B1B8F
triadic
#511B8F #8F511B #1B8F51
tetradic
#511B8F #8F1B1F #598F1B #1B8F8B
square
#511B8F #8F1B1F #598F1B #1B8F8B
split-complementary
#511B8F #8F8B1B #1F8F1B
monochromatic
#170828 #34115C #511B8F #6E25C2 #8D48DC

Accessibility & contrast

On white

11.03
#511B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#511B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B8F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B8F#FFFFFF#000000##FFFFFF
##511B8F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#413B55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511b8f;
/* rgb */ color: rgb(81, 27, 143);
/* oklch */ color: oklch(37.8% 0.174 298.5);
Tailwind
colors: {
  custom: {
    50: '#895fb1',
    500: '#511b8f',
    950: '#000000',
  },
}
SCSS
$custom: #511b8f;
$custom-light: #895fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#511b8f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 267.931,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3779,
    "c": 0.17418,
    "h": 298.5
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#511B8F
secondary
#87BE48
accent
#EB3D9A
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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