#512563#512563

#512563 is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.5% C 0.112 H 315.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#512563
RGBrgb(81, 37, 99)
HSLhsl(283, 46%, 27%)
HSVhsv(283, 63%, 39%)
CMYKcmyk(18.2%, 62.6%, 0%, 61.2%)
CIE-LABlab(23.58, 31.80, -28.27)
CIE-LCHlch(23.58, 42.55, 318.37°)
OKLaboklab(35.48% 0.079 -0.0791)
OKLCHoklch(35.48% 0.112 315)
XYZxyz(6.3067, 3.9735, 12.2367)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512563 #376325
analogous
#322563 #512563 #632556
triadic
#512563 #635125 #256351
tetradic
#512563 #633225 #376325 #255663
square
#512563 #633225 #376325 #255663
split-complementary
#512563 #566325 #256332
monochromatic
#120816 #2D1436 #512563 #753690 #9948BB

Accessibility & contrast

On white

11.70
#512563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#512563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512563
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512563#FFFFFF#000000##FFFFFF
##5125631.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133665
Deuteranopia (green-blind)
#243961
Tritanopia (blue-blind)
#503040
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512563;
/* rgb */ color: rgb(81, 37, 99);
/* oklch */ color: oklch(35.5% 0.112 315.0);
Tailwind
colors: {
  custom: {
    50: '#846290',
    500: '#512563',
    950: '#000000',
  },
}
SCSS
$custom: #512563;
$custom-light: #846290;
$custom-dark: #000000;
JSON
{
  "hex": "#512563",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 99
  },
  "hsl": {
    "h": 282.581,
    "s": 45.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35479,
    "c": 0.11185,
    "h": 315
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#512563
secondary
#63964E
accent
#D55378
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #512563

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

Preview Lab → · Contrast checker → · Palette generator →

#512563 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva