#51297A#51297A

#51297A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.133 H 303.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#51297A
RGBrgb(81, 41, 122)
HSLhsl(270, 50%, 32%)
HSVhsv(270, 66%, 48%)
CMYKcmyk(33.6%, 66.4%, 0%, 52.2%)
CIE-LABlab(25.98, 35.38, -39.22)
CIE-LCHlch(25.98, 52.82, 312.05°)
OKLaboklab(37.72% 0.073 -0.1113)
OKLCHoklch(37.72% 0.133 303.3)
XYZxyz(7.6983, 4.7404, 18.9180)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51297A #527A29
analogous
#29297A #51297A #7A297A
triadic
#51297A #7A5129 #297A51
tetradic
#51297A #7A2929 #527A29 #297A7A
square
#51297A #7A2929 #527A29 #297A7A
split-complementary
#51297A #7A7A29 #297A29
monochromatic
#140A1E #331A4C #51297A #6F38A8 #8E57C7

Accessibility & contrast

On white

10.78
#51297A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#51297A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51297A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51297A#FFFFFF#000000##FFFFFF
##51297A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#0F3D78
Tritanopia (blue-blind)
#493A4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51297a;
/* rgb */ color: rgb(81, 41, 122);
/* oklch */ color: oklch(37.7% 0.133 303.3);
Tailwind
colors: {
  custom: {
    50: '#8565a1',
    500: '#51297a',
    950: '#000000',
  },
}
SCSS
$custom: #51297a;
$custom-light: #8565a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51297a",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 269.63,
    "s": 49.693,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.13309,
    "h": 303.3
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#51297A
secondary
#80AC53
accent
#D94F95
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51297A

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

Preview Lab → · Contrast checker → · Palette generator →

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