#51249B#51249B

#51249B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.178 H 293.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#51249B
RGBrgb(81, 36, 155)
HSLhsl(263, 62%, 37%)
HSVhsv(263, 77%, 61%)
CMYKcmyk(47.7%, 76.8%, 0%, 39.2%)
CIE-LABlab(27.78, 46.84, -56.81)
CIE-LCHlch(27.78, 73.63, 309.50°)
OKLaboklab(39.86% 0.0722 -0.1629)
OKLCHoklch(39.86% 0.178 293.9)
XYZxyz(9.9390, 5.3773, 31.5182)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51249B #6E9B24
analogous
#24329B #51249B #8D249B
triadic
#51249B #9B5124 #249B51
tetradic
#51249B #9B2432 #6E9B24 #249B8D
square
#51249B #9B2432 #6E9B24 #249B8D
split-complementary
#51249B #9B8D24 #329B24
monochromatic
#1D0D38 #371869 #51249B #6B30CD #8E5FDA

Accessibility & contrast

On white

10.12
#51249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#51249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51249B
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51249B#FFFFFF#000000##FFFFFF
##51249B1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#3B445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51249b;
/* rgb */ color: rgb(81, 36, 155);
/* oklch */ color: oklch(39.9% 0.178 293.9);
Tailwind
colors: {
  custom: {
    50: '#8964b9',
    500: '#51249b',
    950: '#000000',
  },
}
SCSS
$custom: #51249b;
$custom-light: #8964b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51249b",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 262.689,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.1782,
    "h": 293.9
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#51249B
secondary
#99BF5C
accent
#E542A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51249B

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

Preview Lab → · Contrast checker → · Palette generator →

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