#51297E#51297E

#51297E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.138 H 301.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#51297E
RGBrgb(81, 41, 126)
HSLhsl(268, 51%, 33%)
HSVhsv(268, 67%, 49%)
CMYKcmyk(35.7%, 67.5%, 0%, 50.6%)
CIE-LABlab(26.28, 36.44, -41.27)
CIE-LCHlch(26.28, 55.06, 311.45°)
OKLaboklab(38.03% 0.0727 -0.1173)
OKLCHoklch(38.03% 0.138 301.8)
XYZxyz(7.9513, 4.8415, 20.2502)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51297E #567E29
analogous
#292C7E #51297E #7B297E
triadic
#51297E #7E5129 #297E51
tetradic
#51297E #7E292C #567E29 #297E7B
square
#51297E #7E292C #567E29 #297E7B
split-complementary
#51297E #7E7B29 #2C7E29
monochromatic
#160B22 #331A50 #51297E #6F38AC #8D59C9

Accessibility & contrast

On white

10.67
#51297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#51297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51297E
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51297E#FFFFFF#000000##FFFFFF
##51297E1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#483C4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51297e;
/* rgb */ color: rgb(81, 41, 126);
/* oklch */ color: oklch(38.0% 0.138 301.8);
Tailwind
colors: {
  custom: {
    50: '#8665a4',
    500: '#51297e',
    950: '#000000',
  },
}
SCSS
$custom: #51297e;
$custom-light: #8665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#51297e",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 268.235,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38033,
    "c": 0.13797,
    "h": 301.8
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#51297E
secondary
#84AE55
accent
#DA4D98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51297E

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

Preview Lab → · Contrast checker → · Palette generator →

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