#51124B#51124B

#51124B is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.117 H 332.1°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#51124B
RGBrgb(81, 18, 75)
HSLhsl(306, 64%, 19%)
HSVhsv(306, 78%, 32%)
CMYKcmyk(0%, 77.8%, 7.4%, 68.2%)
CIE-LABlab(18.76, 36.01, -19.88)
CIE-LCHlch(18.76, 41.13, 331.10°)
OKLaboklab(31.5% 0.1033 -0.0546)
OKLCHoklch(31.5% 0.117 332.1)
XYZxyz(4.8797, 2.6903, 6.9175)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51124B #125118
analogous
#381251 #51124B #51122C
triadic
#51124B #4B5112 #124B51
tetradic
#51124B #513812 #125118 #122C51
square
#51124B #513812 #125118 #122C51
split-complementary
#51124B #2C5112 #125138
monochromatic
#190617 #1F071D #51124B #831D79 #B528A8

Accessibility & contrast

On white

13.65
#51124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#51124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51124B
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51124B#FFFFFF#000000##FFFFFF
##51124B1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E284D
Deuteranopia (green-blind)
#263149
Tritanopia (blue-blind)
#55192D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51124b;
/* rgb */ color: rgb(81, 18, 75);
/* oklch */ color: oklch(31.5% 0.117 332.1);
Tailwind
colors: {
  custom: {
    50: '#84577d',
    500: '#51124b',
    950: '#000000',
  },
}
SCSS
$custom: #51124b;
$custom-light: #84577d;
$custom-dark: #000000;
JSON
{
  "hex": "#51124b",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 305.714,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31504,
    "c": 0.11688,
    "h": 332.1
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#51124B
secondary
#358A3D
accent
#E75141
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #51124B

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

Preview Lab → · Contrast checker → · Palette generator →

#51124B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva