#51255C#51255C

#51255C is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.104 H 319.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#51255C
RGBrgb(81, 37, 92)
HSLhsl(288, 43%, 25%)
HSVhsv(288, 60%, 36%)
CMYKcmyk(12%, 59.8%, 0%, 63.9%)
CIE-LABlab(23.15, 30.17, -24.35)
CIE-LCHlch(23.15, 38.77, 321.09°)
OKLaboklab(35.03% 0.0786 -0.0677)
OKLCHoklch(35.03% 0.104 319.2)
XYZxyz(5.9864, 3.8454, 10.5500)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51255C #305C25
analogous
#35255C #51255C #5C254B
triadic
#51255C #5C5125 #255C51
tetradic
#51255C #5C3525 #305C25 #254B5C
square
#51255C #5C3525 #305C25 #254B5C
split-complementary
#51255C #4B5C25 #255C35
monochromatic
#130916 #2B1330 #51255C #773788 #9E48B3

Accessibility & contrast

On white

11.87
#51255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#51255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51255C
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51255C#FFFFFF#000000##FFFFFF
##51255C1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A345E
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#512D3C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51255c;
/* rgb */ color: rgb(81, 37, 92);
/* oklch */ color: oklch(35.0% 0.104 319.2);
Tailwind
colors: {
  custom: {
    50: '#84628a',
    500: '#51255c',
    950: '#000000',
  },
}
SCSS
$custom: #51255c;
$custom-light: #84628a;
$custom-dark: #000000;
JSON
{
  "hex": "#51255c",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 288,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35025,
    "c": 0.10377,
    "h": 319.2
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#51255C
secondary
#5B8F4D
accent
#D2556E
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #51255C

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

Preview Lab → · Contrast checker → · Palette generator →

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