#51128F#51128F

#51128F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.182 H 299.4°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#51128F
RGBrgb(81, 18, 143)
HSLhsl(270, 78%, 32%)
HSVhsv(270, 87%, 56%)
CMYKcmyk(43.4%, 87.4%, 0%, 43.9%)
CIE-LABlab(24.21, 50.86, -55.28)
CIE-LCHlch(24.21, 75.12, 312.61°)
OKLaboklab(37.03% 0.0894 -0.1583)
OKLCHoklch(37.03% 0.182 299.4)
XYZxyz(8.5663, 4.1650, 26.3339)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51128F #508F12
analogous
#13128F #51128F #8F128F
triadic
#51128F #8F5112 #128F51
tetradic
#51128F #8F1312 #508F12 #128F8F
square
#51128F #8F1312 #508F12 #128F8F
split-complementary
#51128F #8F8F12 #128F13
monochromatic
#130422 #320B59 #51128F #7019C5 #8E36E6

Accessibility & contrast

On white

11.46
#51128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#51128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51128F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51128F#FFFFFF#000000##FFFFFF
##51128F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#423854
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51128f;
/* rgb */ color: rgb(81, 18, 143);
/* oklch */ color: oklch(37.0% 0.182 299.4);
Tailwind
colors: {
  custom: {
    50: '#895bb1',
    500: '#51128f',
    950: '#000000',
  },
}
SCSS
$custom: #51128f;
$custom-light: #895bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#51128f",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 270.24,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3703,
    "c": 0.18176,
    "h": 299.4
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#51128F
secondary
#7EC33A
accent
#F43493
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #51128F

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

Preview Lab → · Contrast checker → · Palette generator →

#51128F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva