#51148F#51148F

#51148F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.180 H 299.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#51148F
RGBrgb(81, 20, 143)
HSLhsl(270, 75%, 32%)
HSVhsv(270, 86%, 56%)
CMYKcmyk(43.4%, 86%, 0%, 43.9%)
CIE-LABlab(24.43, 50.22, -54.93)
CIE-LCHlch(24.43, 74.42, 312.44°)
OKLaboklab(37.18% 0.0881 -0.1572)
OKLCHoklch(37.18% 0.18 299.3)
XYZxyz(8.6002, 4.2327, 26.3452)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51148F #528F14
analogous
#14158F #51148F #8F148F
triadic
#51148F #8F5114 #148F51
tetradic
#51148F #8F1415 #528F14 #148F8F
square
#51148F #8F1415 #528F14 #148F8F
split-complementary
#51148F #8F8F14 #158F14
monochromatic
#140524 #330C59 #51148F #6F1CC5 #8E3AE3

Accessibility & contrast

On white

11.37
#51148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#51148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51148F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51148F#FFFFFF#000000##FFFFFF
##51148F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#413954
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51148f;
/* rgb */ color: rgb(81, 20, 143);
/* oklch */ color: oklch(37.2% 0.180 299.3);
Tailwind
colors: {
  custom: {
    50: '#895cb1',
    500: '#51148f',
    950: '#000000',
  },
}
SCSS
$custom: #51148f;
$custom-light: #895cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#51148f",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 269.756,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37179,
    "c": 0.18026,
    "h": 299.3
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#51148F
secondary
#80C33C
accent
#F23695
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #51148F

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

Preview Lab → · Contrast checker → · Palette generator →

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