#51125C#51125C

#51125C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.132 H 321.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#51125C
RGBrgb(81, 18, 92)
HSLhsl(291, 67%, 22%)
HSVhsv(291, 80%, 36%)
CMYKcmyk(12%, 80.4%, 0%, 63.9%)
CIE-LABlab(19.86, 39.30, -29.60)
CIE-LCHlch(19.86, 49.19, 323.02°)
OKLaboklab(32.65% 0.103 -0.0829)
OKLCHoklch(32.65% 0.132 321.2)
XYZxyz(5.5412, 2.9550, 10.4016)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51125C #1D5C12
analogous
#2C125C #51125C #5C1242
triadic
#51125C #5C5112 #125C51
tetradic
#51125C #5C2C12 #1D5C12 #12425C
square
#51125C #5C2C12 #1D5C12 #12425C
split-complementary
#51125C #425C12 #125C2C
monochromatic
#17051A #240829 #51125C #7E1C8F #AB26C2

Accessibility & contrast

On white

13.20
#51125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#51125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51125C
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51125C#FFFFFF#000000##FFFFFF
##51125C1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#1B325A
Tritanopia (blue-blind)
#522136
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51125c;
/* rgb */ color: rgb(81, 18, 92);
/* oklch */ color: oklch(32.6% 0.132 321.2);
Tailwind
colors: {
  custom: {
    50: '#85588a',
    500: '#51125c',
    950: '#000000',
  },
}
SCSS
$custom: #51125c;
$custom-light: #85588a;
$custom-dark: #000000;
JSON
{
  "hex": "#51125c",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 291.081,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32649,
    "c": 0.13223,
    "h": 321.2
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#51125C
secondary
#449435
accent
#EA3E57
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51125C

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

Preview Lab → · Contrast checker → · Palette generator →

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