#51249D#51249D

#51249D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.180 H 293.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#51249D
RGBrgb(81, 36, 157)
HSLhsl(262, 63%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(48.4%, 77.1%, 0%, 38.4%)
CIE-LABlab(27.97, 47.38, -57.73)
CIE-LCHlch(27.97, 74.68, 309.37°)
OKLaboklab(40.04% 0.0717 -0.1656)
OKLCHoklch(40.04% 0.18 293.4)
XYZxyz(10.1083, 5.4451, 32.4102)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51249D #709D24
analogous
#24349D #51249D #8D249D
triadic
#51249D #9D5124 #249D51
tetradic
#51249D #9D2434 #709D24 #249D8D
square
#51249D #9D2434 #709D24 #249D8D
split-complementary
#51249D #9D8D24 #349D24
monochromatic
#1E0D39 #37196B #51249D #6B2FCF #8E61DB

Accessibility & contrast

On white

10.05
#51249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#51249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51249D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51249D#FFFFFF#000000##FFFFFF
##51249D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#3A455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51249d;
/* rgb */ color: rgb(81, 36, 157);
/* oklch */ color: oklch(40.0% 0.180 293.4);
Tailwind
colors: {
  custom: {
    50: '#8a64bb',
    500: '#51249d',
    950: '#000000',
  },
}
SCSS
$custom: #51249d;
$custom-light: #8a64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51249d",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 262.314,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40041,
    "c": 0.18045,
    "h": 293.4
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#51249D
secondary
#9BC05D
accent
#E642A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51249D

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

Preview Lab → · Contrast checker → · Palette generator →

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