#51259B#51259B

#51259B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.177 H 293.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#51259B
RGBrgb(81, 37, 155)
HSLhsl(262, 61%, 38%)
HSVhsv(262, 76%, 61%)
CMYKcmyk(47.7%, 76.1%, 0%, 39.2%)
CIE-LABlab(27.95, 46.37, -56.54)
CIE-LCHlch(27.95, 73.12, 309.35°)
OKLaboklab(39.97% 0.0713 -0.1621)
OKLCHoklch(39.97% 0.177 293.7)
XYZxyz(9.9697, 5.4387, 31.5285)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51259B #6F9B25
analogous
#25349B #51259B #8C259B
triadic
#51259B #9B5125 #259B51
tetradic
#51259B #9B2534 #6F9B25 #259B8C
square
#51259B #9B2534 #6F9B25 #259B8C
split-complementary
#51259B #9B8C25 #349B25
monochromatic
#1D0D38 #37196A #51259B #6B31CC #8E61D9

Accessibility & contrast

On white

10.06
#51259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51259B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51259B#FFFFFF#000000##FFFFFF
##51259B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#3B455E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51259b;
/* rgb */ color: rgb(81, 37, 155);
/* oklch */ color: oklch(40.0% 0.177 293.7);
Tailwind
colors: {
  custom: {
    50: '#8964b9',
    500: '#51259b',
    950: '#000000',
  },
}
SCSS
$custom: #51259b;
$custom-light: #8964b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51259b",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 262.373,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39973,
    "c": 0.17714,
    "h": 293.7
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#51259B
secondary
#9ABF5D
accent
#E543A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51259B

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

Preview Lab → · Contrast checker → · Palette generator →

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