#51259F#51259F

#51259F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.182 H 292.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#51259F
RGBrgb(81, 37, 159)
HSLhsl(262, 62%, 38%)
HSVhsv(262, 77%, 62%)
CMYKcmyk(49.1%, 76.7%, 0%, 37.6%)
CIE-LABlab(28.31, 47.45, -58.38)
CIE-LCHlch(28.31, 75.23, 309.11°)
OKLaboklab(40.34% 0.0703 -0.1675)
OKLCHoklch(40.34% 0.182 292.8)
XYZxyz(10.3112, 5.5753, 33.3270)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51259F #739F25
analogous
#25369F #51259F #8E259F
triadic
#51259F #9F5125 #259F51
tetradic
#51259F #9F2536 #739F25 #259F8E
square
#51259F #9F2536 #739F25 #259F8E
split-complementary
#51259F #9F8E25 #369F25
monochromatic
#1E0E3C #38196D #51259F #6B32CF #8F64DB

Accessibility & contrast

On white

9.93
#51259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#51259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51259F
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51259F#FFFFFF#000000##FFFFFF
##51259F1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51259f;
/* rgb */ color: rgb(81, 37, 159);
/* oklch */ color: oklch(40.3% 0.182 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a65bc',
    500: '#51259f',
    950: '#000000',
  },
}
SCSS
$custom: #51259f;
$custom-light: #8a65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51259f",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 261.639,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.18167,
    "h": 292.8
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#51259F
secondary
#9DC05F
accent
#E542AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51259F

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

Preview Lab → · Contrast checker → · Palette generator →

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