#51247C#51247C

#51247C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.143 H 303.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#51247C
RGBrgb(81, 36, 124)
HSLhsl(271, 55%, 31%)
HSVhsv(271, 71%, 49%)
CMYKcmyk(34.7%, 71%, 0%, 51.4%)
CIE-LABlab(25.16, 38.59, -41.82)
CIE-LCHlch(25.16, 56.90, 312.70°)
OKLaboklab(37.18% 0.0789 -0.1189)
OKLCHoklch(37.18% 0.143 303.6)
XYZxyz(7.6615, 4.4663, 19.5233)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51247C #4F7C24
analogous
#25247C #51247C #7C247B
triadic
#51247C #7C5124 #247C51
tetradic
#51247C #7C2524 #4F7C24 #247B7C
square
#51247C #7C2524 #4F7C24 #247B7C
split-complementary
#51247C #7B7C24 #247C25
monochromatic
#13081D #32164D #51247C #7032AB #8F4FCC

Accessibility & contrast

On white

11.09
#51247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#51247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51247C
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51247C#FFFFFF#000000##FFFFFF
##51247C1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#49384D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #51247c;
/* rgb */ color: rgb(81, 36, 124);
/* oklch */ color: oklch(37.2% 0.143 303.6);
Tailwind
colors: {
  custom: {
    50: '#8662a3',
    500: '#51247c',
    950: '#000000',
  },
}
SCSS
$custom: #51247c;
$custom-light: #8662a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51247c",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 270.682,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3718,
    "c": 0.14265,
    "h": 303.6
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#51247C
secondary
#7DAE4D
accent
#DE4992
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51247C

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

Preview Lab → · Contrast checker → · Palette generator →

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