#51229C#51229C

#51229C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.181 H 293.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#51229C
RGBrgb(81, 34, 156)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 61%)
CMYKcmyk(48.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(27.55, 48.03, -57.80)
CIE-LCHlch(27.55, 75.15, 309.72°)
OKLaboklab(39.72% 0.0736 -0.1658)
OKLCHoklch(39.72% 0.181 293.9)
XYZxyz(9.9645, 5.2934, 31.9428)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51229C #6D9C22
analogous
#22309C #51229C #8E229C
triadic
#51229C #9C5122 #229C51
tetradic
#51229C #9C2230 #6D9C22 #229C8E
square
#51229C #9C2230 #6D9C22 #229C8E
split-complementary
#51229C #9C8E22 #309C22
monochromatic
#1D0C38 #37176A #51229C #6B2DCE #8E5DDC

Accessibility & contrast

On white

10.20
#51229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51229C
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51229C#FFFFFF#000000##FFFFFF
##51229C1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3A445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51229c;
/* rgb */ color: rgb(81, 34, 156);
/* oklch */ color: oklch(39.7% 0.181 293.9);
Tailwind
colors: {
  custom: {
    50: '#8a63ba',
    500: '#51229c',
    950: '#000000',
  },
}
SCSS
$custom: #51229c;
$custom-light: #8a63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51229c",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 263.115,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39724,
    "c": 0.18139,
    "h": 293.9
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#51229C
secondary
#99C05A
accent
#E741A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51229C

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

Preview Lab → · Contrast checker → · Palette generator →

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