#51229B#51229B

#51229B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.180 H 294.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#51229B
RGBrgb(81, 34, 155)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 61%)
CMYKcmyk(47.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(27.46, 47.76, -57.34)
CIE-LCHlch(27.46, 74.62, 309.79°)
OKLaboklab(39.63% 0.0739 -0.1645)
OKLCHoklch(39.63% 0.18 294.2)
XYZxyz(9.8801, 5.2596, 31.4986)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51229B #6C9B22
analogous
#222F9B #51229B #8E229B
triadic
#51229B #9B5122 #229B51
tetradic
#51229B #9B222F #6C9B22 #229B8E
square
#51229B #9B222F #6C9B22 #229B8E
split-complementary
#51229B #9B8E22 #2F9B22
monochromatic
#1D0C37 #371769 #51229B #6B2DCD #8E5CDB

Accessibility & contrast

On white

10.23
#51229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#51229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51229B
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51229B#FFFFFF#000000##FFFFFF
##51229B1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#3B435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51229b;
/* rgb */ color: rgb(81, 34, 155);
/* oklch */ color: oklch(39.6% 0.180 294.2);
Tailwind
colors: {
  custom: {
    50: '#8a63ba',
    500: '#51229b',
    950: '#000000',
  },
}
SCSS
$custom: #51229b;
$custom-light: #8a63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51229b",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 263.306,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39631,
    "c": 0.18028,
    "h": 294.2
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#51229B
secondary
#98C059
accent
#E741A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51229B

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

Preview Lab → · Contrast checker → · Palette generator →

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