#51156F#51156F

#51156F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.147 H 311.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#51156F
RGBrgb(81, 21, 111)
HSLhsl(280, 68%, 26%)
HSVhsv(280, 81%, 44%)
CMYKcmyk(27%, 81.1%, 0%, 56.5%)
CIE-LABlab(21.70, 42.27, -39.10)
CIE-LCHlch(21.70, 57.58, 317.24°)
OKLaboklab(34.41% 0.097 -0.1108)
OKLCHoklch(34.41% 0.147 311.2)
XYZxyz(6.5302, 3.4335, 15.3546)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51156F #336F15
analogous
#24156F #51156F #6F1560
triadic
#51156F #6F5115 #156F51
tetradic
#51156F #6F2415 #336F15 #15606F
square
#51156F #6F2415 #336F15 #15606F
split-complementary
#51156F #606F15 #156F24
monochromatic
#13051A #2B0B3C #51156F #771FA2 #9C28D6

Accessibility & contrast

On white

12.45
#51156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#51156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51156F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51156F#FFFFFF#000000##FFFFFF
##51156F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#4D2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51156f;
/* rgb */ color: rgb(81, 21, 111);
/* oklch */ color: oklch(34.4% 0.147 311.2);
Tailwind
colors: {
  custom: {
    50: '#865a99',
    500: '#51156f',
    950: '#000000',
  },
}
SCSS
$custom: #51156f;
$custom-light: #865a99;
$custom-dark: #000000;
JSON
{
  "hex": "#51156f",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 280,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.14727,
    "h": 311.2
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#51156F
secondary
#5EA53A
accent
#EB3D77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #51156F

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

Preview Lab → · Contrast checker → · Palette generator →

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