#51135F#51135F

#51135F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.134 H 319.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#51135F
RGBrgb(81, 19, 95)
HSLhsl(289, 67%, 22%)
HSVhsv(289, 80%, 37%)
CMYKcmyk(14.7%, 80%, 0%, 62.7%)
CIE-LABlab(20.21, 39.54, -31.03)
CIE-LCHlch(20.21, 50.26, 321.87°)
OKLaboklab(32.96% 0.1017 -0.0871)
OKLCHoklch(32.96% 0.134 319.4)
XYZxyz(5.6915, 3.0416, 11.1115)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51135F #215F13
analogous
#2B135F #51135F #5F1347
triadic
#51135F #5F5113 #135F51
tetradic
#51135F #5F2B13 #215F13 #13475F
square
#51135F #5F2B13 #215F13 #13475F
split-complementary
#51135F #475F13 #135F2B
monochromatic
#16051A #26092C #51135F #7C1D92 #A827C5

Accessibility & contrast

On white

13.06
#51135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51135F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51135F#FFFFFF#000000##FFFFFF
##51135F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#19335D
Tritanopia (blue-blind)
#512338
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51135f;
/* rgb */ color: rgb(81, 19, 95);
/* oklch */ color: oklch(33.0% 0.134 319.4);
Tailwind
colors: {
  custom: {
    50: '#85588d',
    500: '#51135f',
    950: '#000000',
  },
}
SCSS
$custom: #51135f;
$custom-light: #85588d;
$custom-dark: #000000;
JSON
{
  "hex": "#51135f",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 288.947,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32964,
    "c": 0.13389,
    "h": 319.4
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#51135F
secondary
#499737
accent
#EA3E5E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51135F

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

Preview Lab → · Contrast checker → · Palette generator →

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