#51259E#51259E

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

Color values

HEX#51259E
RGBrgb(81, 37, 158)
HSLhsl(262, 62%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(48.7%, 76.6%, 0%, 38%)
CIE-LABlab(28.22, 47.18, -57.92)
CIE-LCHlch(28.22, 74.71, 309.17°)
OKLaboklab(40.25% 0.0705 -0.1662)
OKLCHoklch(40.25% 0.181 293)
XYZxyz(10.2247, 5.5407, 32.8719)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51259E #729E25
analogous
#25369E #51259E #8D259E
triadic
#51259E #9E5125 #259E51
tetradic
#51259E #9E2536 #729E25 #259E8D
square
#51259E #9E2536 #729E25 #259E8D
split-complementary
#51259E #9E8D25 #369E25
monochromatic
#1E0E3B #38196C #51259E #6B31CF #8E63DA

Accessibility & contrast

On white

9.96
#51259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#51259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51259E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51259E#FFFFFF#000000##FFFFFF
##51259E1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#394660
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51259e;
/* rgb */ color: rgb(81, 37, 158);
/* oklch */ color: oklch(40.2% 0.181 293.0);
Tailwind
colors: {
  custom: {
    50: '#8a64bc',
    500: '#51259e',
    950: '#000000',
  },
}
SCSS
$custom: #51259e;
$custom-light: #8a64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51259e",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 261.818,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.18054,
    "h": 293
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51259E

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

Preview Lab → · Contrast checker → · Palette generator →

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