#511F98#511F98

#511F98 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.180 H 295.4°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#511F98
RGBrgb(81, 31, 152)
HSLhsl(265, 66%, 36%)
HSVhsv(265, 80%, 60%)
CMYKcmyk(46.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(26.72, 48.29, -56.71)
CIE-LCHlch(26.72, 74.49, 310.41°)
OKLaboklab(39.03% 0.0772 -0.1626)
OKLCHoklch(39.03% 0.18 295.4)
XYZxyz(9.5493, 4.9961, 30.1609)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F98 #66981F
analogous
#1F2A98 #511F98 #8D1F98
triadic
#511F98 #98511F #1F9851
tetradic
#511F98 #981F2A #66981F #1F988D
square
#511F98 #981F2A #66981F #1F988D
split-complementary
#511F98 #988D1F #2A981F
monochromatic
#1B0A32 #361565 #511F98 #6C29CB #8D55DC

Accessibility & contrast

On white

10.50
#511F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#511F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F98
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F98#FFFFFF#000000##FFFFFF
##511F981.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#3D415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #511f98;
/* rgb */ color: rgb(81, 31, 152);
/* oklch */ color: oklch(39.0% 0.180 295.4);
Tailwind
colors: {
  custom: {
    50: '#8961b7',
    500: '#511f98',
    950: '#000000',
  },
}
SCSS
$custom: #511f98;
$custom-light: #8961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#511f98",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 264.793,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3903,
    "c": 0.17997,
    "h": 295.4
  },
  "luminance": 0.04996
}

Semantic roles & 50–950 ramp

primary
#511F98
secondary
#93C053
accent
#E93FA3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #511F98

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

Preview Lab → · Contrast checker → · Palette generator →

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