#51247A#51247A

#51247A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.140 H 304.3°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#51247A
RGBrgb(81, 36, 122)
HSLhsl(271, 54%, 31%)
HSVhsv(271, 70%, 48%)
CMYKcmyk(33.6%, 70.5%, 0%, 52.2%)
CIE-LABlab(25.00, 38.07, -40.80)
CIE-LCHlch(25.00, 55.80, 313.02°)
OKLaboklab(37.02% 0.0791 -0.1159)
OKLCHoklch(37.02% 0.14 304.3)
XYZxyz(7.5363, 4.4163, 18.8640)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51247A #4D7A24
analogous
#26247A #51247A #7A2478
triadic
#51247A #7A5124 #247A51
tetradic
#51247A #7A2624 #4D7A24 #24787A
square
#51247A #7A2624 #4D7A24 #24787A
split-complementary
#51247A #787A24 #247A26
monochromatic
#12081B #32164B #51247A #7032A9 #8F4ECB

Accessibility & contrast

On white

11.15
#51247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#51247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51247A
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51247A#FFFFFF#000000##FFFFFF
##51247A1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#033B78
Tritanopia (blue-blind)
#49374C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51247a;
/* rgb */ color: rgb(81, 36, 122);
/* oklch */ color: oklch(37.0% 0.140 304.3);
Tailwind
colors: {
  custom: {
    50: '#8662a1',
    500: '#51247a',
    950: '#000000',
  },
}
SCSS
$custom: #51247a;
$custom-light: #8662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51247a",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 271.395,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3702,
    "c": 0.14032,
    "h": 304.3
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#51247A
secondary
#7BAC4D
accent
#DE4A90
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51247A

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

Preview Lab → · Contrast checker → · Palette generator →

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