#51218C#51218C

#51218C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.165 H 298.6°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#51218C
RGBrgb(81, 33, 140)
HSLhsl(267, 62%, 34%)
HSVhsv(267, 76%, 55%)
CMYKcmyk(42.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.95, 44.24, -50.56)
CIE-LCHlch(25.95, 67.19, 311.19°)
OKLaboklab(38.16% 0.0788 -0.1446)
OKLCHoklch(38.16% 0.165 298.6)
XYZxyz(8.6696, 4.7304, 25.2621)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51218C #5C8C21
analogous
#21278C #51218C #87218C
triadic
#51218C #8C5121 #218C51
tetradic
#51218C #8C2127 #5C8C21 #218C87
square
#51218C #8C2127 #5C8C21 #218C87
split-complementary
#51218C #8C8721 #278C21
monochromatic
#180A29 #34155A #51218C #6E2DBE #8D51D6

Accessibility & contrast

On white

10.79
#51218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#51218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51218C
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51218C#FFFFFF#000000##FFFFFF
##51218C1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#423D55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51218c;
/* rgb */ color: rgb(81, 33, 140);
/* oklch */ color: oklch(38.2% 0.165 298.6);
Tailwind
colors: {
  custom: {
    50: '#8861ae',
    500: '#51218c',
    950: '#000000',
  },
}
SCSS
$custom: #51218c;
$custom-light: #8861ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51218c",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 266.916,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38157,
    "c": 0.16464,
    "h": 298.6
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#51218C
secondary
#8AB94F
accent
#E5439C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51218C

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

Preview Lab → · Contrast checker → · Palette generator →

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