#51235E#51235E

#51235E is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.9% C 0.110 H 318.3°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#51235E
RGBrgb(81, 35, 94)
HSLhsl(287, 46%, 25%)
HSVhsv(287, 63%, 37%)
CMYKcmyk(13.8%, 62.8%, 0%, 63.1%)
CIE-LABlab(22.86, 31.74, -26.14)
CIE-LCHlch(22.86, 41.12, 320.53°)
OKLaboklab(34.85% 0.0817 -0.0729)
OKLCHoklch(34.85% 0.11 318.3)
XYZxyz(6.0145, 3.7598, 10.9964)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51235E #305E23
analogous
#34235E #51235E #5E234D
triadic
#51235E #5E5123 #235E51
tetradic
#51235E #5E3423 #305E23 #234D5E
square
#51235E #5E3423 #305E23 #234D5E
split-complementary
#51235E #4D5E23 #235E34
monochromatic
#130816 #2B1231 #51235E #77348B #9E44B7

Accessibility & contrast

On white

11.99
#51235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#51235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51235E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51235E#FFFFFF#000000##FFFFFF
##51235E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51235e;
/* rgb */ color: rgb(81, 35, 94);
/* oklch */ color: oklch(34.9% 0.110 318.3);
Tailwind
colors: {
  custom: {
    50: '#84618c',
    500: '#51235e',
    950: '#000000',
  },
}
SCSS
$custom: #51235e;
$custom-light: #84618c;
$custom-dark: #000000;
JSON
{
  "hex": "#51235e",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 286.78,
    "s": 45.736,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34851,
    "c": 0.10952,
    "h": 318.3
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#51235E
secondary
#5B924B
accent
#D5526F
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #51235E

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

Preview Lab → · Contrast checker → · Palette generator →

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