#51298F#51298F

#51298F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.158 H 296.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#51298F
RGBrgb(81, 41, 143)
HSLhsl(264, 55%, 36%)
HSVhsv(264, 71%, 56%)
CMYKcmyk(43.4%, 71.3%, 0%, 43.9%)
CIE-LABlab(27.62, 41.07, -49.70)
CIE-LCHlch(27.62, 64.47, 309.57°)
OKLaboklab(39.42% 0.0702 -0.1421)
OKLCHoklch(39.42% 0.158 296.3)
XYZxyz(9.1429, 5.3182, 26.5261)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51298F #678F29
analogous
#29348F #51298F #84298F
triadic
#51298F #8F5129 #298F51
tetradic
#51298F #8F2934 #678F29 #298F84
square
#51298F #8F2934 #678F29 #298F84
split-complementary
#51298F #8F8429 #348F29
monochromatic
#1B0E30 #361B5F #51298F #6C37BF #8D61D2

Accessibility & contrast

On white

10.18
#51298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51298F
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51298F#FFFFFF#000000##FFFFFF
##51298F1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#414259
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51298f;
/* rgb */ color: rgb(81, 41, 143);
/* oklch */ color: oklch(39.4% 0.158 296.3);
Tailwind
colors: {
  custom: {
    50: '#8866b1',
    500: '#51298f',
    950: '#000000',
  },
}
SCSS
$custom: #51298f;
$custom-light: #8866b1;
$custom-dark: #000000;
JSON
{
  "hex": "#51298f",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 263.529,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39419,
    "c": 0.15848,
    "h": 296.3
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#51298F
secondary
#94B75C
accent
#DF49A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51298F

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

Preview Lab → · Contrast checker → · Palette generator →

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