#51125E#51125E

#51125E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.134 H 320.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#51125E
RGBrgb(81, 18, 94)
HSLhsl(290, 68%, 22%)
HSVhsv(290, 81%, 37%)
CMYKcmyk(13.8%, 80.9%, 0%, 63.1%)
CIE-LABlab(20.01, 39.71, -30.70)
CIE-LCHlch(20.01, 50.19, 322.29°)
OKLaboklab(32.8% 0.1028 -0.0861)
OKLCHoklch(32.8% 0.134 320.1)
XYZxyz(5.6298, 2.9904, 10.8682)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51125E #1F5E12
analogous
#2B125E #51125E #5E1245
triadic
#51125E #5E5112 #125E51
tetradic
#51125E #5E2B12 #1F5E12 #12455E
square
#51125E #5E2B12 #1F5E12 #12455E
split-complementary
#51125E #455E12 #125E2B
monochromatic
#16051A #25082B #51125E #7D1C91 #AA26C5

Accessibility & contrast

On white

13.14
#51125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#51125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51125E
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51125E#FFFFFF#000000##FFFFFF
##51125E1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#19325C
Tritanopia (blue-blind)
#512237
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51125e;
/* rgb */ color: rgb(81, 18, 94);
/* oklch */ color: oklch(32.8% 0.134 320.1);
Tailwind
colors: {
  custom: {
    50: '#85588c',
    500: '#51125e',
    950: '#000000',
  },
}
SCSS
$custom: #51125e;
$custom-light: #85588c;
$custom-dark: #000000;
JSON
{
  "hex": "#51125e",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 289.737,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32796,
    "c": 0.1341,
    "h": 320.1
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#51125E
secondary
#469635
accent
#EB3D5B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51125E

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

Preview Lab → · Contrast checker → · Palette generator →

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