#51249A#51249A

#51249A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.177 H 294.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#51249A
RGBrgb(81, 36, 154)
HSLhsl(263, 62%, 37%)
HSVhsv(263, 77%, 60%)
CMYKcmyk(47.4%, 76.6%, 0%, 39.6%)
CIE-LABlab(27.69, 46.57, -56.35)
CIE-LCHlch(27.69, 73.10, 309.57°)
OKLaboklab(39.76% 0.0725 -0.1616)
OKLCHoklch(39.76% 0.177 294.2)
XYZxyz(9.8554, 5.3439, 31.0778)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51249A #6D9A24
analogous
#24329A #51249A #8C249A
triadic
#51249A #9A5124 #249A51
tetradic
#51249A #9A2432 #6D9A24 #249A8C
square
#51249A #9A2432 #6D9A24 #249A8C
split-complementary
#51249A #9A8C24 #329A24
monochromatic
#1D0D37 #371868 #51249A #6B30CC #8E5FDA

Accessibility & contrast

On white

10.15
#51249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#51249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51249A
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51249A#FFFFFF#000000##FFFFFF
##51249A1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#3B445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51249a;
/* rgb */ color: rgb(81, 36, 154);
/* oklch */ color: oklch(39.8% 0.177 294.2);
Tailwind
colors: {
  custom: {
    50: '#8964b9',
    500: '#51249a',
    950: '#000000',
  },
}
SCSS
$custom: #51249a;
$custom-light: #8964b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51249a",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 262.881,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39764,
    "c": 0.17708,
    "h": 294.2
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#51249A
secondary
#99BF5B
accent
#E543A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51249A

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

Preview Lab → · Contrast checker → · Palette generator →

#51249A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva