#51125A#51125A

#51125A is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.130 H 322.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#51125A
RGBrgb(81, 18, 90)
HSLhsl(293, 67%, 21%)
HSVhsv(293, 80%, 35%)
CMYKcmyk(10%, 80%, 0%, 64.7%)
CIE-LABlab(19.72, 38.89, -28.49)
CIE-LCHlch(19.72, 48.21, 323.78°)
OKLaboklab(32.51% 0.1032 -0.0796)
OKLCHoklch(32.51% 0.13 322.3)
XYZxyz(5.4549, 2.9204, 9.9473)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51125A #1B5A12
analogous
#2D125A #51125A #5A123F
triadic
#51125A #5A5112 #125A51
tetradic
#51125A #5A2D12 #1B5A12 #123F5A
square
#51125A #5A2D12 #1B5A12 #123F5A
split-complementary
#51125A #3F5A12 #125A2D
monochromatic
#17051A #230827 #51125A #7F1C8D #AD26C0

Accessibility & contrast

On white

13.26
#51125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#51125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51125A
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51125A#FFFFFF#000000##FFFFFF
##51125A1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#1D3258
Tritanopia (blue-blind)
#522035
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51125a;
/* rgb */ color: rgb(81, 18, 90);
/* oklch */ color: oklch(32.5% 0.130 322.3);
Tailwind
colors: {
  custom: {
    50: '#855889',
    500: '#51125a',
    950: '#000000',
  },
}
SCSS
$custom: #51125a;
$custom-light: #855889;
$custom-dark: #000000;
JSON
{
  "hex": "#51125a",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 292.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32505,
    "c": 0.13036,
    "h": 322.3
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#51125A
secondary
#419335
accent
#EA3E54
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51125A

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

Preview Lab → · Contrast checker → · Palette generator →

#51125A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva