#51127C#51127C

#51127C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.163 H 306.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#51127C
RGBrgb(81, 18, 124)
HSLhsl(276, 75%, 28%)
HSVhsv(276, 85%, 49%)
CMYKcmyk(34.7%, 85.5%, 0%, 51.4%)
CIE-LABlab(22.43, 46.36, -46.25)
CIE-LCHlch(22.43, 65.48, 315.07°)
OKLaboklab(35.26% 0.0961 -0.1318)
OKLCHoklch(35.26% 0.163 306.1)
XYZxyz(7.2469, 3.6372, 19.3852)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51127C #3D7C12
analogous
#1C127C #51127C #7C1272
triadic
#51127C #7C5112 #127C51
tetradic
#51127C #7C1C12 #3D7C12 #12727C
square
#51127C #7C1C12 #3D7C12 #12727C
split-complementary
#51127C #727C12 #127C1C
monochromatic
#11041B #2E0A47 #51127C #741AB1 #9529E0

Accessibility & contrast

On white

12.16
#51127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51127C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51127C#FFFFFF#000000##FFFFFF
##51127C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#492F49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51127c;
/* rgb */ color: rgb(81, 18, 124);
/* oklch */ color: oklch(35.3% 0.163 306.1);
Tailwind
colors: {
  custom: {
    50: '#875aa3',
    500: '#51127c',
    950: '#000000',
  },
}
SCSS
$custom: #51127c;
$custom-light: #875aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#51127c",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 275.66,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35261,
    "c": 0.16306,
    "h": 306.1
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#51127C
secondary
#69B238
accent
#F13782
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51127C

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

Preview Lab → · Contrast checker → · Palette generator →

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