#51299A#51299A

#51299A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.171 H 293.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#51299A
RGBrgb(81, 41, 154)
HSLhsl(261, 58%, 38%)
HSVhsv(261, 73%, 60%)
CMYKcmyk(47.4%, 73.4%, 0%, 39.6%)
CIE-LABlab(28.56, 44.12, -54.93)
CIE-LCHlch(28.56, 70.45, 308.77°)
OKLaboklab(40.38% 0.068 -0.1574)
OKLCHoklch(40.38% 0.171 293.4)
XYZxyz(10.0174, 5.6680, 31.1318)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51299A #729A29
analogous
#29399A #51299A #89299A
triadic
#51299A #9A5129 #299A51
tetradic
#51299A #9A2939 #729A29 #299A89
square
#51299A #9A2939 #729A29 #299A89
split-complementary
#51299A #9A8929 #399A29
monochromatic
#1E0F39 #381C6A #51299A #6B37CA #8E67D7

Accessibility & contrast

On white

9.84
#51299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#51299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51299A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51299A#FFFFFF#000000##FFFFFF
##51299A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#3B465F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51299a;
/* rgb */ color: rgb(81, 41, 154);
/* oklch */ color: oklch(40.4% 0.171 293.4);
Tailwind
colors: {
  custom: {
    50: '#8967b9',
    500: '#51299a',
    950: '#000000',
  },
}
SCSS
$custom: #51299a;
$custom-light: #8967b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51299a",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 261.239,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40375,
    "c": 0.17149,
    "h": 293.4
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#51299A
secondary
#9DBD62
accent
#E147AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51299A

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

Preview Lab → · Contrast checker → · Palette generator →

#51299A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva