#51297C#51297C

#51297C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.136 H 302.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#51297C
RGBrgb(81, 41, 124)
HSLhsl(269, 50%, 32%)
HSVhsv(269, 67%, 49%)
CMYKcmyk(34.7%, 66.9%, 0%, 51.4%)
CIE-LABlab(26.13, 35.91, -40.25)
CIE-LCHlch(26.13, 53.94, 311.74°)
OKLaboklab(37.88% 0.0729 -0.1143)
OKLCHoklch(37.88% 0.136 302.5)
XYZxyz(7.8235, 4.7904, 19.5774)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51297C #547C29
analogous
#292A7C #51297C #7B297C
triadic
#51297C #7C5129 #297C51
tetradic
#51297C #7C292A #547C29 #297C7B
square
#51297C #7C292A #547C29 #297C7B
split-complementary
#51297C #7C7B29 #2A7C29
monochromatic
#150B20 #331A4E #51297C #6F38AA #8E58C8

Accessibility & contrast

On white

10.73
#51297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#51297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51297C
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51297C#FFFFFF#000000##FFFFFF
##51297C1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#0B3E7A
Tritanopia (blue-blind)
#483B4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51297c;
/* rgb */ color: rgb(81, 41, 124);
/* oklch */ color: oklch(37.9% 0.136 302.5);
Tailwind
colors: {
  custom: {
    50: '#8565a2',
    500: '#51297c',
    950: '#000000',
  },
}
SCSS
$custom: #51297c;
$custom-light: #8565a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51297c",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 268.916,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37878,
    "c": 0.13553,
    "h": 302.5
  },
  "luminance": 0.0479
}

Semantic roles & 50–950 ramp

primary
#51297C
secondary
#82AD54
accent
#DA4E96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51297C

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

Preview Lab → · Contrast checker → · Palette generator →

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