#511FA7#511FA7

#511FA7 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.196 H 291.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#511FA7
RGBrgb(81, 31, 167)
HSLhsl(262, 69%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(51.5%, 81.4%, 0%, 34.5%)
CIE-LABlab(28.16, 52.23, -63.48)
CIE-LCHlch(28.16, 82.20, 309.45°)
OKLaboklab(40.47% 0.0723 -0.1824)
OKLCHoklch(40.47% 0.196 291.6)
XYZxyz(10.8564, 5.5189, 37.0449)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511FA7 #75A71F
analogous
#1F31A7 #511FA7 #951FA7
triadic
#511FA7 #A7511F #1FA751
tetradic
#511FA7 #A71F31 #75A71F #1FA795
square
#511FA7 #A71F31 #75A71F #1FA795
split-complementary
#511FA7 #A7951F #31A71F
monochromatic
#1F0C40 #381573 #511FA7 #6B2BD8 #8F5FE1

Accessibility & contrast

On white

9.98
#511FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#511FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511FA7
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511FA7#FFFFFF#000000##FFFFFF
##511FA71.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#334764
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #511fa7;
/* rgb */ color: rgb(81, 31, 167);
/* oklch */ color: oklch(40.5% 0.196 291.6);
Tailwind
colors: {
  custom: {
    50: '#8c62c2',
    500: '#511fa7',
    950: '#000000',
  },
}
SCSS
$custom: #511fa7;
$custom-light: #8c62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#511fa7",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 262.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40468,
    "c": 0.1962,
    "h": 291.6
  },
  "luminance": 0.05519
}

Semantic roles & 50–950 ramp

primary
#511FA7
secondary
#9FC65C
accent
#EC3CAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #511FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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