#51259C#51259C

#51259C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.178 H 293.5°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#51259C
RGBrgb(81, 37, 156)
HSLhsl(262, 62%, 38%)
HSVhsv(262, 76%, 61%)
CMYKcmyk(48.1%, 76.3%, 0%, 38.8%)
CIE-LABlab(28.04, 46.64, -57.00)
CIE-LCHlch(28.04, 73.65, 309.29°)
OKLaboklab(40.06% 0.0711 -0.1635)
OKLCHoklch(40.06% 0.178 293.5)
XYZxyz(10.0540, 5.4724, 31.9726)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51259C #709C25
analogous
#25349C #51259C #8C259C
triadic
#51259C #9C5125 #259C51
tetradic
#51259C #9C2534 #709C25 #259C8C
square
#51259C #9C2534 #709C25 #259C8C
split-complementary
#51259C #9C8C25 #349C25
monochromatic
#1E0E39 #37196B #51259C #6B31CD #8E62DA

Accessibility & contrast

On white

10.03
#51259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#51259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51259C
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51259C#FFFFFF#000000##FFFFFF
##51259C1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#3A455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51259c;
/* rgb */ color: rgb(81, 37, 156);
/* oklch */ color: oklch(40.1% 0.178 293.5);
Tailwind
colors: {
  custom: {
    50: '#8a64ba',
    500: '#51259c',
    950: '#000000',
  },
}
SCSS
$custom: #51259c;
$custom-light: #8a64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51259c",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 262.185,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40064,
    "c": 0.17827,
    "h": 293.5
  },
  "luminance": 0.05473
}

Semantic roles & 50–950 ramp

primary
#51259C
secondary
#9BBF5E
accent
#E543A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51259C

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

Preview Lab → · Contrast checker → · Palette generator →

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