#51245E#51245E

#51245E is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.108 H 318.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#51245E
RGBrgb(81, 36, 94)
HSLhsl(287, 45%, 25%)
HSVhsv(287, 62%, 37%)
CMYKcmyk(13.8%, 61.7%, 0%, 63.1%)
CIE-LABlab(23.07, 31.19, -25.81)
CIE-LCHlch(23.07, 40.48, 320.39°)
OKLaboklab(35% 0.0803 -0.072)
OKLCHoklch(35% 0.108 318.1)
XYZxyz(6.0443, 3.8195, 11.0063)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51245E #315E24
analogous
#34245E #51245E #5E244E
triadic
#51245E #5E5124 #245E51
tetradic
#51245E #5E3424 #315E24 #244E5E
square
#51245E #5E3424 #315E24 #244E5E
split-complementary
#51245E #4E5E24 #245E34
monochromatic
#130816 #2B1332 #51245E #77358A #9D46B7

Accessibility & contrast

On white

11.91
#51245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#51245E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51245E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51245E#FFFFFF#000000##FFFFFF
##51245E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163460
Deuteranopia (green-blind)
#27385C
Tritanopia (blue-blind)
#512D3D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51245e;
/* rgb */ color: rgb(81, 36, 94);
/* oklch */ color: oklch(35.0% 0.108 318.1);
Tailwind
colors: {
  custom: {
    50: '#84618c',
    500: '#51245e',
    950: '#000000',
  },
}
SCSS
$custom: #51245e;
$custom-light: #84618c;
$custom-dark: #000000;
JSON
{
  "hex": "#51245e",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 286.552,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35,
    "c": 0.1078,
    "h": 318.1
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#51245E
secondary
#5C924C
accent
#D45370
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #51245E

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

Preview Lab → · Contrast checker → · Palette generator →

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