#51249F#51249F

#51249F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.183 H 292.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#51249F
RGBrgb(81, 36, 159)
HSLhsl(262, 63%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(49.1%, 77.4%, 0%, 37.6%)
CIE-LABlab(28.15, 47.92, -58.65)
CIE-LCHlch(28.15, 75.74, 309.25°)
OKLaboklab(40.23% 0.0711 -0.1683)
OKLCHoklch(40.23% 0.183 292.9)
XYZxyz(10.2805, 5.5139, 33.3168)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51249F #729F24
analogous
#24349F #51249F #8E249F
triadic
#51249F #9F5124 #249F51
tetradic
#51249F #9F2434 #729F24 #249F8E
square
#51249F #9F2434 #729F24 #249F8E
split-complementary
#51249F #9F8E24 #349F24
monochromatic
#1E0D3B #38196D #51249F #6B30D0 #8E62DB

Accessibility & contrast

On white

9.99
#51249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#51249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51249F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51249F#FFFFFF#000000##FFFFFF
##51249F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#384660
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51249f;
/* rgb */ color: rgb(81, 36, 159);
/* oklch */ color: oklch(40.2% 0.183 292.9);
Tailwind
colors: {
  custom: {
    50: '#8a64bc',
    500: '#51249f',
    950: '#000000',
  },
}
SCSS
$custom: #51249f;
$custom-light: #8a64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51249f",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 261.951,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40226,
    "c": 0.18271,
    "h": 292.9
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#51249F
secondary
#9DC15E
accent
#E642AA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51249F

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

Preview Lab → · Contrast checker → · Palette generator →

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