#51298D#51298D

#51298D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.156 H 296.9°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#51298D
RGBrgb(81, 41, 141)
HSLhsl(264, 55%, 36%)
HSVhsv(264, 71%, 55%)
CMYKcmyk(42.6%, 70.9%, 0%, 44.7%)
CIE-LABlab(27.46, 40.52, -48.73)
CIE-LCHlch(27.46, 63.37, 309.74°)
OKLaboklab(39.25% 0.0706 -0.1392)
OKLCHoklch(39.25% 0.156 296.9)
XYZxyz(8.9927, 5.2581, 25.7353)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51298D #658D29
analogous
#29338D #51298D #83298D
triadic
#51298D #8D5129 #298D51
tetradic
#51298D #8D2933 #658D29 #298D83
square
#51298D #8D2933 #658D29 #298D83
split-complementary
#51298D #8D8329 #338D29
monochromatic
#1B0D2E #361B5E #51298D #6C37BC #8D60D1

Accessibility & contrast

On white

10.24
#51298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#51298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51298D
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51298D#FFFFFF#000000##FFFFFF
##51298D1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#424158
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51298d;
/* rgb */ color: rgb(81, 41, 141);
/* oklch */ color: oklch(39.3% 0.156 296.9);
Tailwind
colors: {
  custom: {
    50: '#8766af',
    500: '#51298d',
    950: '#000000',
  },
}
SCSS
$custom: #51298d;
$custom-light: #8766af;
$custom-dark: #000000;
JSON
{
  "hex": "#51298d",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 264,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3925,
    "c": 0.15608,
    "h": 296.9
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#51298D
secondary
#92B65B
accent
#DE4AA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51298D

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

Preview Lab → · Contrast checker → · Palette generator →

#51298D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva