#51247F#51247F

#51247F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.146 H 302.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#51247F
RGBrgb(81, 36, 127)
HSLhsl(270, 56%, 32%)
HSVhsv(270, 72%, 50%)
CMYKcmyk(36.2%, 71.7%, 0%, 50.2%)
CIE-LABlab(25.39, 39.37, -43.33)
CIE-LCHlch(25.39, 58.55, 312.25°)
OKLaboklab(37.42% 0.0784 -0.1233)
OKLCHoklch(37.42% 0.146 302.4)
XYZxyz(7.8541, 4.5434, 20.5377)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51247F #527F24
analogous
#24257F #51247F #7F247F
triadic
#51247F #7F5124 #247F51
tetradic
#51247F #7F2425 #527F24 #247F7F
square
#51247F #7F2425 #527F24 #247F7F
split-complementary
#51247F #7F7F24 #257F24
monochromatic
#140920 #33164F #51247F #6F32AF #8E50CD

Accessibility & contrast

On white

11.00
#51247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#51247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51247F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51247F#FFFFFF#000000##FFFFFF
##51247F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#48394E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #51247f;
/* rgb */ color: rgb(81, 36, 127);
/* oklch */ color: oklch(37.4% 0.146 302.4);
Tailwind
colors: {
  custom: {
    50: '#8663a5',
    500: '#51247f',
    950: '#000000',
  },
}
SCSS
$custom: #51247f;
$custom-light: #8663a5;
$custom-dark: #000000;
JSON
{
  "hex": "#51247f",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 269.67,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37422,
    "c": 0.14613,
    "h": 302.4
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#51247F
secondary
#80B14E
accent
#DF4995
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #51247F

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

Preview Lab → · Contrast checker → · Palette generator →

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