#511FA5#511FA5

#511FA5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.194 H 292.1°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#511FA5
RGBrgb(81, 31, 165)
HSLhsl(262, 68%, 38%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(50.9%, 81.2%, 0%, 35.3%)
CIE-LABlab(27.97, 51.71, -62.59)
CIE-LCHlch(27.97, 81.18, 309.56°)
OKLaboklab(40.27% 0.073 -0.1798)
OKLCHoklch(40.27% 0.194 292.1)
XYZxyz(10.6729, 5.4455, 36.0787)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511FA5 #73A51F
analogous
#1F30A5 #511FA5 #941FA5
triadic
#511FA5 #A5511F #1FA551
tetradic
#511FA5 #A51F30 #73A51F #1FA594
square
#511FA5 #A51F30 #73A51F #1FA594
split-complementary
#511FA5 #A5941F #30A51F
monochromatic
#1E0C3E #381571 #511FA5 #6B2AD7 #8F5EE1

Accessibility & contrast

On white

10.05
#511FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#511FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511FA5
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511FA5#FFFFFF#000000##FFFFFF
##511FA51.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#354663
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #511fa5;
/* rgb */ color: rgb(81, 31, 165);
/* oklch */ color: oklch(40.3% 0.194 292.1);
Tailwind
colors: {
  custom: {
    50: '#8b62c1',
    500: '#511fa5',
    950: '#000000',
  },
}
SCSS
$custom: #511fa5;
$custom-light: #8b62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#511fa5",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 262.388,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40272,
    "c": 0.19405,
    "h": 292.1
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#511FA5
secondary
#9DC55B
accent
#EB3DAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #511FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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