#51127F#51127F

#51127F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.166 H 304.9°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#51127F
RGBrgb(81, 18, 127)
HSLhsl(275, 75%, 28%)
HSVhsv(275, 86%, 50%)
CMYKcmyk(36.2%, 85.8%, 0%, 50.2%)
CIE-LABlab(22.70, 47.06, -47.71)
CIE-LCHlch(22.70, 67.01, 314.60°)
OKLaboklab(35.53% 0.0951 -0.1361)
OKLCHoklch(35.53% 0.166 304.9)
XYZxyz(7.4395, 3.7143, 20.3996)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51127F #407F12
analogous
#1B127F #51127F #7F1276
triadic
#51127F #7F5112 #127F51
tetradic
#51127F #7F1B12 #407F12 #12767F
square
#51127F #7F1B12 #407F12 #12767F
split-complementary
#51127F #767F12 #127F1B
monochromatic
#11041B #2F0A49 #51127F #731AB5 #942BE1

Accessibility & contrast

On white

12.05
#51127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#51127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51127F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51127F#FFFFFF#000000##FFFFFF
##51127F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#48314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51127f;
/* rgb */ color: rgb(81, 18, 127);
/* oklch */ color: oklch(35.5% 0.166 304.9);
Tailwind
colors: {
  custom: {
    50: '#875aa5',
    500: '#51127f',
    950: '#000000',
  },
}
SCSS
$custom: #51127f;
$custom-light: #875aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#51127f",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 274.679,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.166,
    "h": 304.9
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#51127F
secondary
#6DB538
accent
#F23685
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51127F

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

Preview Lab → · Contrast checker → · Palette generator →

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