#51299F#51299F

#51299F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.177 H 292.1°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#51299F
RGBrgb(81, 41, 159)
HSLhsl(260, 59%, 39%)
HSVhsv(260, 74%, 62%)
CMYKcmyk(49.1%, 74.2%, 0%, 37.6%)
CIE-LABlab(29.00, 45.51, -57.26)
CIE-LCHlch(29.00, 73.14, 308.48°)
OKLaboklab(40.82% 0.0668 -0.1643)
OKLCHoklch(40.82% 0.177 292.1)
XYZxyz(10.4425, 5.8380, 33.3708)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51299F #779F29
analogous
#293C9F #51299F #8C299F
triadic
#51299F #9F5129 #299F51
tetradic
#51299F #9F293C #779F29 #299F8C
square
#51299F #9F293C #779F29 #299F8C
split-complementary
#51299F #9F8C29 #3C9F29
monochromatic
#1F103E #381C6E #51299F #6B39CC #8F6AD9

Accessibility & contrast

On white

9.69
#51299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#51299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51299F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51299F#FFFFFF#000000##FFFFFF
##51299F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#384862
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51299f;
/* rgb */ color: rgb(81, 41, 159);
/* oklch */ color: oklch(40.8% 0.177 292.1);
Tailwind
colors: {
  custom: {
    50: '#8a67bc',
    500: '#51299f',
    950: '#000000',
  },
}
SCSS
$custom: #51299f;
$custom-light: #8a67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51299f",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 260.339,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40823,
    "c": 0.17734,
    "h": 292.1
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#51299F
secondary
#A0BF65
accent
#E246AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51299F

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

Preview Lab → · Contrast checker → · Palette generator →

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