#51127D#51127D

#51127D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.164 H 305.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#51127D
RGBrgb(81, 18, 125)
HSLhsl(275, 75%, 28%)
HSVhsv(275, 86%, 49%)
CMYKcmyk(35.2%, 85.6%, 0%, 51%)
CIE-LABlab(22.52, 46.59, -46.74)
CIE-LCHlch(22.52, 65.99, 314.91°)
OKLaboklab(35.35% 0.0957 -0.1332)
OKLCHoklch(35.35% 0.164 305.7)
XYZxyz(7.3105, 3.6627, 19.7199)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51127D #3E7D12
analogous
#1B127D #51127D #7D1273
triadic
#51127D #7D5112 #127D51
tetradic
#51127D #7D1B12 #3E7D12 #12737D
square
#51127D #7D1B12 #3E7D12 #12737D
split-complementary
#51127D #737D12 #127D1B
monochromatic
#11041B #2E0A48 #51127D #741AB2 #9529E0

Accessibility & contrast

On white

12.12
#51127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#51127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51127D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51127D#FFFFFF#000000##FFFFFF
##51127D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#493049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51127d;
/* rgb */ color: rgb(81, 18, 125);
/* oklch */ color: oklch(35.4% 0.164 305.7);
Tailwind
colors: {
  custom: {
    50: '#875aa3',
    500: '#51127d',
    950: '#000000',
  },
}
SCSS
$custom: #51127d;
$custom-light: #875aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#51127d",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 275.327,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3535,
    "c": 0.16404,
    "h": 305.7
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#51127D
secondary
#6AB338
accent
#F13683
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51127D

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

Preview Lab → · Contrast checker → · Palette generator →

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