#51288B#51288B

#51288B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.155 H 297.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#51288B
RGBrgb(81, 40, 139)
HSLhsl(265, 55%, 35%)
HSVhsv(265, 71%, 55%)
CMYKcmyk(41.7%, 71.2%, 0%, 45.5%)
CIE-LABlab(27.10, 40.50, -48.06)
CIE-LCHlch(27.10, 62.85, 310.12°)
OKLaboklab(38.95% 0.072 -0.1373)
OKLCHoklch(38.95% 0.155 297.7)
XYZxyz(8.8111, 5.1308, 24.9472)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51288B #628B28
analogous
#28318B #51288B #82288B
triadic
#51288B #8B5128 #288B51
tetradic
#51288B #8B2831 #628B28 #288B82
square
#51288B #8B2831 #628B28 #288B82
split-complementary
#51288B #8B8228 #318B28
monochromatic
#1A0D2C #351A5B #51288B #6D36BB #8D5DD0

Accessibility & contrast

On white

10.36
#51288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#51288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51288B
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51288B#FFFFFF#000000##FFFFFF
##51288B1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#434056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51288b;
/* rgb */ color: rgb(81, 40, 139);
/* oklch */ color: oklch(38.9% 0.155 297.7);
Tailwind
colors: {
  custom: {
    50: '#8765ae',
    500: '#51288b',
    950: '#000000',
  },
}
SCSS
$custom: #51288b;
$custom-light: #8765ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51288b",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 264.848,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.15499,
    "h": 297.7
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#51288B
secondary
#8FB659
accent
#DF49A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51288B

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

Preview Lab → · Contrast checker → · Palette generator →

#51288B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva