#511F94#511F94

#511F94 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.176 H 296.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#511F94
RGBrgb(81, 31, 148)
HSLhsl(266, 65%, 35%)
HSVhsv(266, 79%, 58%)
CMYKcmyk(45.3%, 79.1%, 0%, 42%)
CIE-LABlab(26.35, 47.24, -54.86)
CIE-LCHlch(26.35, 72.40, 310.73°)
OKLaboklab(38.66% 0.0784 -0.1572)
OKLCHoklch(38.66% 0.176 296.5)
XYZxyz(9.2272, 4.8672, 28.4645)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F94 #62941F
analogous
#1F2894 #511F94 #8B1F94
triadic
#511F94 #94511F #1F9451
tetradic
#511F94 #941F28 #62941F #1F948B
square
#511F94 #941F28 #62941F #1F948B
split-complementary
#511F94 #948B1F #28941F
monochromatic
#1A0A2F #351461 #511F94 #6D2AC7 #8D53DB

Accessibility & contrast

On white

10.64
#511F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#511F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F94
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F94#FFFFFF#000000##FFFFFF
##511F941.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#3F3F59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #511f94;
/* rgb */ color: rgb(81, 31, 148);
/* oklch */ color: oklch(38.7% 0.176 296.5);
Tailwind
colors: {
  custom: {
    50: '#8961b4',
    500: '#511f94',
    950: '#000000',
  },
}
SCSS
$custom: #511f94;
$custom-light: #8961b4;
$custom-dark: #000000;
JSON
{
  "hex": "#511f94",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 265.641,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38658,
    "c": 0.17562,
    "h": 296.5
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#511F94
secondary
#8FBE51
accent
#E83FA0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511F94

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

Preview Lab → · Contrast checker → · Palette generator →

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