#51259A#51259A

#51259A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.176 H 294.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#51259A
RGBrgb(81, 37, 154)
HSLhsl(263, 61%, 37%)
HSVhsv(263, 76%, 60%)
CMYKcmyk(47.4%, 76%, 0%, 39.6%)
CIE-LABlab(27.86, 46.09, -56.08)
CIE-LCHlch(27.86, 72.59, 309.42°)
OKLaboklab(39.88% 0.0716 -0.1608)
OKLCHoklch(39.88% 0.176 294)
XYZxyz(9.8860, 5.4053, 31.0880)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51259A #6E9A25
analogous
#25339A #51259A #8C259A
triadic
#51259A #9A5125 #259A51
tetradic
#51259A #9A2533 #6E9A25 #259A8C
square
#51259A #9A2533 #6E9A25 #259A8C
split-complementary
#51259A #9A8C25 #339A25
monochromatic
#1D0D37 #371969 #51259A #6B31CB #8E60D9

Accessibility & contrast

On white

10.09
#51259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#51259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51259A
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51259A#FFFFFF#000000##FFFFFF
##51259A1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#3B445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51259a;
/* rgb */ color: rgb(81, 37, 154);
/* oklch */ color: oklch(39.9% 0.176 294.0);
Tailwind
colors: {
  custom: {
    50: '#8964b9',
    500: '#51259a',
    950: '#000000',
  },
}
SCSS
$custom: #51259a;
$custom-light: #8964b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51259a",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 262.564,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39881,
    "c": 0.176,
    "h": 294
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#51259A
secondary
#99BE5D
accent
#E443A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51259A

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

Preview Lab → · Contrast checker → · Palette generator →

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