#51146C#51146C

#51146C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.145 H 312.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#51146C
RGBrgb(81, 20, 108)
HSLhsl(282, 69%, 25%)
HSVhsv(282, 81%, 42%)
CMYKcmyk(25%, 81.5%, 0%, 57.6%)
CIE-LABlab(21.33, 41.98, -37.76)
CIE-LCHlch(21.33, 56.46, 318.03°)
OKLaboklab(34.07% 0.0986 -0.1068)
OKLCHoklch(34.07% 0.145 312.7)
XYZxyz(6.3498, 3.3325, 14.4932)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51146C #2F6C14
analogous
#25146C #51146C #6C145B
triadic
#51146C #6C5114 #146C51
tetradic
#51146C #6C2514 #2F6C14 #145B6C
square
#51146C #6C2514 #2F6C14 #145B6C
split-complementary
#51146C #5B6C14 #146C25
monochromatic
#13051A #2A0A38 #51146C #781EA0 #9E27D3

Accessibility & contrast

On white

12.60
#51146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#51146C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51146C
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51146C#FFFFFF#000000##FFFFFF
##51146C1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#07346A
Tritanopia (blue-blind)
#4E2940
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51146c;
/* rgb */ color: rgb(81, 20, 108);
/* oklch */ color: oklch(34.1% 0.145 312.7);
Tailwind
colors: {
  custom: {
    50: '#865a97',
    500: '#51146c',
    950: '#000000',
  },
}
SCSS
$custom: #51146c;
$custom-light: #865a97;
$custom-dark: #000000;
JSON
{
  "hex": "#51146c",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 281.591,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34068,
    "c": 0.14538,
    "h": 312.7
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#51146C
secondary
#59A339
accent
#EC3C72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51146C

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

Preview Lab → · Contrast checker → · Palette generator →

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