#5119B4#5119B4

#5119B4 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 41.3% C 0.214 H 289.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5119B4
RGBrgb(81, 25, 180)
HSLhsl(262, 76%, 40%)
HSVhsv(262, 86%, 71%)
CMYKcmyk(55%, 86.1%, 0%, 29.4%)
CIE-LABlab(28.75, 57.80, -70.32)
CIE-LCHlch(28.75, 91.03, 309.42°)
OKLaboklab(41.26% 0.0709 -0.2023)
OKLCHoklch(41.26% 0.214 289.3)
XYZxyz(11.9768, 5.7393, 43.6479)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5119B4 #7CB419
analogous
#192FB4 #5119B4 #9E19B4
triadic
#5119B4 #B45119 #19B451
tetradic
#5119B4 #B4192F #7CB419 #19B49E
square
#5119B4 #B4192F #7CB419 #19B49E
split-complementary
#5119B4 #B49E19 #2FB419
monochromatic
#210A49 #39127E #5119B4 #6C29E1 #915FE9

Accessibility & contrast

On white

9.78
#5119B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5119B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5119B4
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5119B4#FFFFFF#000000##FFFFFF
##5119B41.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#284B6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5119b4;
/* rgb */ color: rgb(81, 25, 180);
/* oklch */ color: oklch(41.3% 0.214 289.3);
Tailwind
colors: {
  custom: {
    50: '#8e60cc',
    500: '#5119b4',
    950: '#000000',
  },
}
SCSS
$custom: #5119b4;
$custom-light: #8e60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5119b4",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 180
  },
  "hsl": {
    "h": 261.677,
    "s": 75.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41264,
    "c": 0.21441,
    "h": 289.3
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#5119B4
secondary
#A4CD5C
accent
#F236AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0514
muted
#7E7A82

Preview Lab

Preview with #5119B4

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

Preview Lab → · Contrast checker → · Palette generator →

#5119B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva