#51115F#51115F

#51115F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.136 H 319.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#51115F
RGBrgb(81, 17, 95)
HSLhsl(289, 70%, 22%)
HSVhsv(289, 82%, 37%)
CMYKcmyk(14.7%, 82.1%, 0%, 62.7%)
CIE-LABlab(19.95, 40.28, -31.45)
CIE-LCHlch(19.95, 51.11, 322.02°)
OKLaboklab(32.78% 0.1037 -0.0883)
OKLCHoklch(32.78% 0.136 319.6)
XYZxyz(5.6591, 2.9767, 11.1007)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51115F #1F5F11
analogous
#2A115F #51115F #5F1146
triadic
#51115F #5F5111 #115F51
tetradic
#51115F #5F2A11 #1F5F11 #11465F
square
#51115F #5F2A11 #1F5F11 #11465F
split-complementary
#51115F #465F11 #115F2A
monochromatic
#16051A #25082B #51115F #7D1A93 #AA24C7

Accessibility & contrast

On white

13.16
#51115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#51115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51115F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51115F#FFFFFF#000000##FFFFFF
##51115F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#18325D
Tritanopia (blue-blind)
#512238
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51115f;
/* rgb */ color: rgb(81, 17, 95);
/* oklch */ color: oklch(32.8% 0.136 319.6);
Tailwind
colors: {
  custom: {
    50: '#85588d',
    500: '#51115f',
    950: '#000000',
  },
}
SCSS
$custom: #51115f;
$custom-light: #85588d;
$custom-dark: #000000;
JSON
{
  "hex": "#51115f",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 289.231,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.13616,
    "h": 319.6
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#51115F
secondary
#469834
accent
#EC3B5B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51115F

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

Preview Lab → · Contrast checker → · Palette generator →

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