#511FA9#511FA9

#511FA9 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.198 H 291.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#511FA9
RGBrgb(81, 31, 169)
HSLhsl(262, 69%, 39%)
HSVhsv(262, 82%, 66%)
CMYKcmyk(52.1%, 81.7%, 0%, 33.7%)
CIE-LABlab(28.36, 52.76, -64.36)
CIE-LCHlch(28.36, 83.22, 309.34°)
OKLaboklab(40.66% 0.0716 -0.185)
OKLCHoklch(40.66% 0.198 291.2)
XYZxyz(11.0427, 5.5934, 38.0262)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511FA9 #77A91F
analogous
#1F32A9 #511FA9 #961FA9
triadic
#511FA9 #A9511F #1FA951
tetradic
#511FA9 #A91F32 #77A91F #1FA996
square
#511FA9 #A91F32 #77A91F #1FA996
split-complementary
#511FA9 #A9961F #32A91F
monochromatic
#1F0C42 #381675 #511FA9 #6B2DD8 #8F60E2

Accessibility & contrast

On white

9.91
#511FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#511FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511FA9
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511FA9#FFFFFF#000000##FFFFFF
##511FA91.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#324865
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #511fa9;
/* rgb */ color: rgb(81, 31, 169);
/* oklch */ color: oklch(40.7% 0.198 291.2);
Tailwind
colors: {
  custom: {
    50: '#8c62c4',
    500: '#511fa9',
    950: '#000000',
  },
}
SCSS
$custom: #511fa9;
$custom-light: #8c62c4;
$custom-dark: #000000;
JSON
{
  "hex": "#511fa9",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 261.739,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40664,
    "c": 0.19836,
    "h": 291.2
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#511FA9
secondary
#A0C75D
accent
#EC3CAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #511FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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