#51239A#51239A

#51239A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.178 H 294.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#51239A
RGBrgb(81, 35, 154)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 77%, 60%)
CMYKcmyk(47.4%, 77.3%, 0%, 39.6%)
CIE-LABlab(27.53, 47.03, -56.62)
CIE-LCHlch(27.53, 73.61, 309.72°)
OKLaboklab(39.65% 0.0733 -0.1623)
OKLCHoklch(39.65% 0.178 294.3)
XYZxyz(9.8255, 5.2842, 31.0678)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51239A #6C9A23
analogous
#23319A #51239A #8D239A
triadic
#51239A #9A5123 #239A51
tetradic
#51239A #9A2331 #6C9A23 #239A8D
square
#51239A #9A2331 #6C9A23 #239A8D
split-complementary
#51239A #9A8D23 #319A23
monochromatic
#1D0C36 #371868 #51239A #6B2ECC #8E5DDA

Accessibility & contrast

On white

10.21
#51239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51239A
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51239A#FFFFFF#000000##FFFFFF
##51239A1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51239a;
/* rgb */ color: rgb(81, 35, 154);
/* oklch */ color: oklch(39.6% 0.178 294.3);
Tailwind
colors: {
  custom: {
    50: '#8963b9',
    500: '#51239a',
    950: '#000000',
  },
}
SCSS
$custom: #51239a;
$custom-light: #8963b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51239a",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 263.193,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3965,
    "c": 0.17814,
    "h": 294.3
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

primary
#51239A
secondary
#98BF5A
accent
#E642A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51239A

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

Preview Lab → · Contrast checker → · Palette generator →

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