#51229D#51229D

#51229D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.182 H 293.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#51229D
RGBrgb(81, 34, 157)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 62%)
CMYKcmyk(48.4%, 78.3%, 0%, 38.4%)
CIE-LABlab(27.65, 48.29, -58.26)
CIE-LCHlch(27.65, 75.67, 309.66°)
OKLaboklab(39.82% 0.0733 -0.1671)
OKLCHoklch(39.82% 0.183 293.7)
XYZxyz(10.0495, 5.3274, 32.3905)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51229D #6E9D22
analogous
#22309D #51229D #8F229D
triadic
#51229D #9D5122 #229D51
tetradic
#51229D #9D2230 #6E9D22 #229D8F
square
#51229D #9D2230 #6E9D22 #229D8F
split-complementary
#51229D #9D8F22 #309D22
monochromatic
#1D0C38 #37176B #51229D #6B2DCF #8E5DDC

Accessibility & contrast

On white

10.17
#51229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#51229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51229D
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51229D#FFFFFF#000000##FFFFFF
##51229D1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#3A445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51229d;
/* rgb */ color: rgb(81, 34, 157);
/* oklch */ color: oklch(39.8% 0.182 293.7);
Tailwind
colors: {
  custom: {
    50: '#8a63bb',
    500: '#51229d',
    950: '#000000',
  },
}
SCSS
$custom: #51229d;
$custom-light: #8a63bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51229d",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 262.927,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.1825,
    "h": 293.7
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#51229D
secondary
#99C15A
accent
#E740A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51229D

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

Preview Lab → · Contrast checker → · Palette generator →

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