#511FAB#511FAB

#511FAB is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.9% C 0.201 H 290.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#511FAB
RGBrgb(81, 31, 171)
HSLhsl(261, 69%, 40%)
HSVhsv(261, 82%, 67%)
CMYKcmyk(52.6%, 81.9%, 0%, 32.9%)
CIE-LABlab(28.56, 53.29, -65.23)
CIE-LCHlch(28.56, 84.23, 309.24°)
OKLaboklab(40.86% 0.0709 -0.1875)
OKLCHoklch(40.86% 0.201 290.7)
XYZxyz(11.2319, 5.6691, 39.0226)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511FAB #79AB1F
analogous
#1F33AB #511FAB #971FAB
triadic
#511FAB #AB511F #1FAB51
tetradic
#511FAB #AB1F33 #79AB1F #1FAB97
square
#511FAB #AB1F33 #79AB1F #1FAB97
split-complementary
#511FAB #AB971F #33AB1F
monochromatic
#200C43 #381677 #511FAB #6B2ED9 #9062E3

Accessibility & contrast

On white

9.84
#511FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#511FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511FAB
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511FAB#FFFFFF#000000##FFFFFF
##511FAB1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#304966
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #511fab;
/* rgb */ color: rgb(81, 31, 171);
/* oklch */ color: oklch(40.9% 0.201 290.7);
Tailwind
colors: {
  custom: {
    50: '#8c62c5',
    500: '#511fab',
    950: '#000000',
  },
}
SCSS
$custom: #511fab;
$custom-light: #8c62c5;
$custom-dark: #000000;
JSON
{
  "hex": "#511fab",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 261.429,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40862,
    "c": 0.2005,
    "h": 290.7
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#511FAB
secondary
#A2C75E
accent
#EC3CAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #511FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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