#51247B#51247B

#51247B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.141 H 303.9°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#51247B
RGBrgb(81, 36, 123)
HSLhsl(271, 55%, 31%)
HSVhsv(271, 71%, 48%)
CMYKcmyk(34.1%, 70.7%, 0%, 51.8%)
CIE-LABlab(25.08, 38.33, -41.31)
CIE-LCHlch(25.08, 56.35, 312.86°)
OKLaboklab(37.1% 0.079 -0.1174)
OKLCHoklch(37.1% 0.141 303.9)
XYZxyz(7.5986, 4.4412, 19.1920)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51247B #4E7B24
analogous
#25247B #51247B #7B2479
triadic
#51247B #7B5124 #247B51
tetradic
#51247B #7B2524 #4E7B24 #24797B
square
#51247B #7B2524 #4E7B24 #24797B
split-complementary
#51247B #797B24 #247B25
monochromatic
#13081C #32164C #51247B #7032AA #8F4ECB

Accessibility & contrast

On white

11.12
#51247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51247B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51247B#FFFFFF#000000##FFFFFF
##51247B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#013B79
Tritanopia (blue-blind)
#49384C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51247b;
/* rgb */ color: rgb(81, 36, 123);
/* oklch */ color: oklch(37.1% 0.141 303.9);
Tailwind
colors: {
  custom: {
    50: '#8662a2',
    500: '#51247b',
    950: '#000000',
  },
}
SCSS
$custom: #51247b;
$custom-light: #8662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51247b",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 271.034,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.371,
    "c": 0.14149,
    "h": 303.9
  },
  "luminance": 0.04441
}

Semantic roles & 50–950 ramp

primary
#51247B
secondary
#7CAD4D
accent
#DE4A91
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51247B

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

Preview Lab → · Contrast checker → · Palette generator →

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