#51166F#51166F

#51166F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.146 H 311.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#51166F
RGBrgb(81, 22, 111)
HSLhsl(280, 67%, 26%)
HSVhsv(280, 80%, 44%)
CMYKcmyk(27%, 80.2%, 0%, 56.5%)
CIE-LABlab(21.84, 41.88, -38.88)
CIE-LCHlch(21.84, 57.14, 317.13°)
OKLaboklab(34.5% 0.0961 -0.1101)
OKLCHoklch(34.5% 0.146 311.1)
XYZxyz(6.5489, 3.4710, 15.3608)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51166F #346F16
analogous
#24166F #51166F #6F1660
triadic
#51166F #6F5116 #166F51
tetradic
#51166F #6F2416 #346F16 #16606F
square
#51166F #6F2416 #346F16 #16606F
split-complementary
#51166F #606F16 #166F24
monochromatic
#13051A #2C0C3C #51166F #7620A2 #9B2BD5

Accessibility & contrast

On white

12.40
#51166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#51166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51166F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51166F#FFFFFF#000000##FFFFFF
##51166F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#03356D
Tritanopia (blue-blind)
#4D2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51166f;
/* rgb */ color: rgb(81, 22, 111);
/* oklch */ color: oklch(34.5% 0.146 311.1);
Tailwind
colors: {
  custom: {
    50: '#865b99',
    500: '#51166f',
    950: '#000000',
  },
}
SCSS
$custom: #51166f;
$custom-light: #865b99;
$custom-dark: #000000;
JSON
{
  "hex": "#51166f",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 279.775,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34502,
    "c": 0.14617,
    "h": 311.1
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#51166F
secondary
#5FA53C
accent
#EA3E78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #51166F

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

Preview Lab → · Contrast checker → · Palette generator →

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