#51124F#51124F

#51124F is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.120 H 329.3°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#51124F
RGBrgb(81, 18, 79)
HSLhsl(302, 64%, 19%)
HSVhsv(302, 78%, 32%)
CMYKcmyk(0%, 77.8%, 2.5%, 68.2%)
CIE-LABlab(19.00, 36.75, -22.22)
CIE-LCHlch(19.00, 42.94, 328.84°)
OKLaboklab(31.76% 0.1035 -0.0614)
OKLCHoklch(31.76% 0.12 329.3)
XYZxyz(5.0209, 2.7468, 7.6614)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51124F #125114
analogous
#341251 #51124F #511230
triadic
#51124F #4F5112 #124F51
tetradic
#51124F #513412 #125114 #123051
square
#51124F #513412 #125114 #123051
split-complementary
#51124F #305112 #125134
monochromatic
#190618 #1F071E #51124F #831D80 #B528B1

Accessibility & contrast

On white

13.56
#51124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#51124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51124F
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51124F#FFFFFF#000000##FFFFFF
##51124F1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092951
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#541B2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51124f;
/* rgb */ color: rgb(81, 18, 79);
/* oklch */ color: oklch(31.8% 0.120 329.3);
Tailwind
colors: {
  custom: {
    50: '#845780',
    500: '#51124f',
    950: '#000000',
  },
}
SCSS
$custom: #51124f;
$custom-light: #845780;
$custom-dark: #000000;
JSON
{
  "hex": "#51124f",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 301.905,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31756,
    "c": 0.12036,
    "h": 329.3
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#51124F
secondary
#358A38
accent
#E74641
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #51124F

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

Preview Lab → · Contrast checker → · Palette generator →

#51124F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva