#51147C#51147C

#51147C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.161 H 305.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#51147C
RGBrgb(81, 20, 124)
HSLhsl(275, 72%, 28%)
HSVhsv(275, 84%, 49%)
CMYKcmyk(34.7%, 83.9%, 0%, 51.4%)
CIE-LABlab(22.67, 45.66, -45.86)
CIE-LCHlch(22.67, 64.72, 314.88°)
OKLaboklab(35.43% 0.0945 -0.1306)
OKLCHoklch(35.43% 0.161 305.9)
XYZxyz(7.2808, 3.7049, 19.3964)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51147C #3F7C14
analogous
#1D147C #51147C #7C1473
triadic
#51147C #7C5114 #147C51
tetradic
#51147C #7C1D14 #3F7C14 #14737C
square
#51147C #7C1D14 #3F7C14 #14737C
split-complementary
#51147C #737C14 #147C1D
monochromatic
#11041A #2F0B47 #51147C #731DB1 #942DDD

Accessibility & contrast

On white

12.06
#51147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#51147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51147C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51147C#FFFFFF#000000##FFFFFF
##51147C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51147c;
/* rgb */ color: rgb(81, 20, 124);
/* oklch */ color: oklch(35.4% 0.161 305.9);
Tailwind
colors: {
  custom: {
    50: '#875ba3',
    500: '#51147c',
    950: '#000000',
  },
}
SCSS
$custom: #51147c;
$custom-light: #875ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#51147c",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 275.192,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35425,
    "c": 0.16126,
    "h": 305.9
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#51147C
secondary
#6CB23A
accent
#EF3984
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51147C

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

Preview Lab → · Contrast checker → · Palette generator →

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