#51126D#51126D

#51126D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.148 H 312.4°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#51126D
RGBrgb(81, 18, 109)
HSLhsl(282, 72%, 25%)
HSVhsv(282, 83%, 43%)
CMYKcmyk(25.7%, 83.5%, 0%, 57.3%)
CIE-LABlab(21.16, 42.94, -38.69)
CIE-LCHlch(21.16, 57.80, 317.98°)
OKLaboklab(33.97% 0.1002 -0.1095)
OKLCHoklch(33.97% 0.148 312.4)
XYZxyz(6.3695, 3.2863, 14.7638)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51126D #2E6D12
analogous
#23126D #51126D #6D125C
triadic
#51126D #6D5112 #126D51
tetradic
#51126D #6D2312 #2E6D12 #125C6D
square
#51126D #6D2312 #2E6D12 #125C6D
split-complementary
#51126D #5C6D12 #126D23
monochromatic
#14041A #2A0938 #51126D #781BA2 #9F23D6

Accessibility & contrast

On white

12.67
#51126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#51126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51126D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51126D#FFFFFF#000000##FFFFFF
##51126D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#02346B
Tritanopia (blue-blind)
#4E2940
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51126d;
/* rgb */ color: rgb(81, 18, 109);
/* oklch */ color: oklch(34.0% 0.148 312.4);
Tailwind
colors: {
  custom: {
    50: '#865997',
    500: '#51126d',
    950: '#000000',
  },
}
SCSS
$custom: #51126d;
$custom-light: #865997;
$custom-dark: #000000;
JSON
{
  "hex": "#51126d",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 281.538,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33971,
    "c": 0.14844,
    "h": 312.4
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#51126D
secondary
#58A437
accent
#EE3971
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51126D

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

Preview Lab → · Contrast checker → · Palette generator →

#51126D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva