#51259D#51259D

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

Color values

HEX#51259D
RGBrgb(81, 37, 157)
HSLhsl(262, 62%, 38%)
HSVhsv(262, 76%, 62%)
CMYKcmyk(48.4%, 76.4%, 0%, 38.4%)
CIE-LABlab(28.13, 46.91, -57.46)
CIE-LCHlch(28.13, 74.18, 309.23°)
OKLaboklab(40.16% 0.0708 -0.1648)
OKLCHoklch(40.16% 0.179 293.2)
XYZxyz(10.1390, 5.5065, 32.4204)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51259D #719D25
analogous
#25359D #51259D #8D259D
triadic
#51259D #9D5125 #259D51
tetradic
#51259D #9D2535 #719D25 #259D8D
square
#51259D #9D2535 #719D25 #259D8D
split-complementary
#51259D #9D8D25 #359D25
monochromatic
#1E0E3A #37196B #51259D #6B31CE #8E62DA

Accessibility & contrast

On white

9.99
#51259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#51259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51259D
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51259D#FFFFFF#000000##FFFFFF
##51259D1.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)
#0044A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#3A465F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51259d;
/* rgb */ color: rgb(81, 37, 157);
/* oklch */ color: oklch(40.2% 0.179 293.2);
Tailwind
colors: {
  custom: {
    50: '#8a64bb',
    500: '#51259d',
    950: '#000000',
  },
}
SCSS
$custom: #51259d;
$custom-light: #8a64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51259d",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 262,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.17941,
    "h": 293.2
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#51259D
secondary
#9CBF5E
accent
#E543AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51259D

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

Preview Lab → · Contrast checker → · Palette generator →

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