#51165A#51165A

#51165A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.125 H 322.1°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#51165A
RGBrgb(81, 22, 90)
HSLhsl(292, 61%, 22%)
HSVhsv(292, 76%, 35%)
CMYKcmyk(10%, 75.6%, 0%, 64.7%)
CIE-LABlab(20.29, 37.28, -27.58)
CIE-LCHlch(20.29, 46.37, 323.50°)
OKLaboklab(32.91% 0.0988 -0.077)
OKLCHoklch(32.91% 0.125 322.1)
XYZxyz(5.5255, 3.0616, 9.9708)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51165A #1F5A16
analogous
#2F165A #51165A #5A1641
triadic
#51165A #5A5116 #165A51
tetradic
#51165A #5A2F16 #1F5A16 #16415A
square
#51165A #5A2F16 #1F5A16 #16415A
split-complementary
#51165A #415A16 #165A2F
monochromatic
#160619 #250A29 #51165A #7D228B #AA2EBC

Accessibility & contrast

On white

13.03
#51165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51165A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51165A#FFFFFF#000000##FFFFFF
##51165A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#1F3358
Tritanopia (blue-blind)
#522236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51165a;
/* rgb */ color: rgb(81, 22, 90);
/* oklch */ color: oklch(32.9% 0.125 322.1);
Tailwind
colors: {
  custom: {
    50: '#845a89',
    500: '#51165a',
    950: '#000000',
  },
}
SCSS
$custom: #51165a;
$custom-light: #845a89;
$custom-dark: #000000;
JSON
{
  "hex": "#51165a",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 292.059,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.12531,
    "h": 322.1
  },
  "luminance": 0.03061
}

Semantic roles & 50–950 ramp

primary
#51165A
secondary
#46913B
accent
#E44459
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51165A

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

Preview Lab → · Contrast checker → · Palette generator →

#51165A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva