#51298E#51298E

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

Color values

HEX#51298E
RGBrgb(81, 41, 142)
HSLhsl(264, 55%, 36%)
HSVhsv(264, 71%, 56%)
CMYKcmyk(43%, 71.1%, 0%, 44.3%)
CIE-LABlab(27.54, 40.79, -49.22)
CIE-LCHlch(27.54, 63.92, 309.65°)
OKLaboklab(39.33% 0.0704 -0.1406)
OKLCHoklch(39.33% 0.157 296.6)
XYZxyz(9.0675, 5.2880, 26.1289)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51298E #668E29
analogous
#29348E #51298E #83298E
triadic
#51298E #8E5129 #298E51
tetradic
#51298E #8E2934 #668E29 #298E83
square
#51298E #8E2934 #668E29 #298E83
split-complementary
#51298E #8E8329 #348E29
monochromatic
#1B0E2F #361B5F #51298E #6C37BD #8D60D1

Accessibility & contrast

On white

10.21
#51298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51298E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51298E#FFFFFF#000000##FFFFFF
##51298E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#414258
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51298e;
/* rgb */ color: rgb(81, 41, 142);
/* oklch */ color: oklch(39.3% 0.157 296.6);
Tailwind
colors: {
  custom: {
    50: '#8766b0',
    500: '#51298e',
    950: '#000000',
  },
}
SCSS
$custom: #51298e;
$custom-light: #8766b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51298e",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 263.762,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39334,
    "c": 0.15729,
    "h": 296.6
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#51298E
secondary
#93B75C
accent
#DF49A3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51298E

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

Preview Lab → · Contrast checker → · Palette generator →

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