#51299C#51299C

#51299C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.174 H 292.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#51299C
RGBrgb(81, 41, 156)
HSLhsl(261, 58%, 39%)
HSVhsv(261, 74%, 61%)
CMYKcmyk(48.1%, 73.7%, 0%, 38.8%)
CIE-LABlab(28.73, 44.67, -55.87)
CIE-LCHlch(28.73, 71.53, 308.65°)
OKLaboklab(40.55% 0.0675 -0.1602)
OKLCHoklch(40.55% 0.174 292.9)
XYZxyz(10.1854, 5.7352, 32.0164)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51299C #749C29
analogous
#293A9C #51299C #8A299C
triadic
#51299C #9C5129 #299C51
tetradic
#51299C #9C293A #749C29 #299C8A
square
#51299C #9C293A #749C29 #299C8A
split-complementary
#51299C #9C8A29 #3A9C29
monochromatic
#1F103B #381C6C #51299C #6B38CB #8F68D7

Accessibility & contrast

On white

9.78
#51299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#51299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51299C
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51299C#FFFFFF#000000##FFFFFF
##51299C1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#3A4760
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51299c;
/* rgb */ color: rgb(81, 41, 156);
/* oklch */ color: oklch(40.6% 0.174 292.9);
Tailwind
colors: {
  custom: {
    50: '#8967ba',
    500: '#51299c',
    950: '#000000',
  },
}
SCSS
$custom: #51299c;
$custom-light: #8967ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51299c",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 260.87,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.17384,
    "h": 292.9
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#51299C
secondary
#9EBE63
accent
#E246AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51299C

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

Preview Lab → · Contrast checker → · Palette generator →

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