#51126E#51126E

#51126E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.149 H 312.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#51126E
RGBrgb(81, 18, 110)
HSLhsl(281, 72%, 25%)
HSVhsv(281, 84%, 43%)
CMYKcmyk(26.4%, 83.6%, 0%, 56.9%)
CIE-LABlab(21.24, 43.16, -39.20)
CIE-LCHlch(21.24, 58.31, 317.75°)
OKLaboklab(34.05% 0.0999 -0.1111)
OKLCHoklch(34.05% 0.149 312)
XYZxyz(6.4236, 3.3079, 15.0489)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51126E #2F6E12
analogous
#23126E #51126E #6E125D
triadic
#51126E #6E5112 #126E51
tetradic
#51126E #6E2312 #2F6E12 #125D6E
square
#51126E #6E2312 #2F6E12 #125D6E
split-complementary
#51126E #5D6E12 #126E23
monochromatic
#13041A #2A0939 #51126E #781BA3 #9E23D7

Accessibility & contrast

On white

12.64
#51126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51126E
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51126E#FFFFFF#000000##FFFFFF
##51126E1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#4D2940
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51126e;
/* rgb */ color: rgb(81, 18, 110);
/* oklch */ color: oklch(34.1% 0.149 312.0);
Tailwind
colors: {
  custom: {
    50: '#865998',
    500: '#51126e',
    950: '#000000',
  },
}
SCSS
$custom: #51126e;
$custom-light: #865998;
$custom-dark: #000000;
JSON
{
  "hex": "#51126e",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 281.087,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34054,
    "c": 0.14941,
    "h": 312
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#51126E
secondary
#59A537
accent
#EF3972
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51126E

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

Preview Lab → · Contrast checker → · Palette generator →

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