#512783#512783

#512783 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.147 H 300.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#512783
RGBrgb(81, 39, 131)
HSLhsl(267, 54%, 33%)
HSVhsv(267, 70%, 51%)
CMYKcmyk(38.2%, 70.2%, 0%, 48.6%)
CIE-LABlab(26.27, 38.86, -44.42)
CIE-LCHlch(26.27, 59.02, 311.18°)
OKLaboklab(38.15% 0.0744 -0.1265)
OKLCHoklch(38.15% 0.147 300.4)
XYZxyz(8.2146, 4.8390, 21.9696)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512783 #598327
analogous
#272B83 #512783 #7F2783
triadic
#512783 #835127 #278351
tetradic
#512783 #83272B #598327 #27837F
square
#512783 #83272B #598327 #27837F
split-complementary
#512783 #837F27 #2B8327
monochromatic
#170B25 #341954 #512783 #6E35B2 #8D57CD

Accessibility & contrast

On white

10.67
#512783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#512783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512783
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512783#FFFFFF#000000##FFFFFF
##5127831.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#463D52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512783;
/* rgb */ color: rgb(81, 39, 131);
/* oklch */ color: oklch(38.1% 0.147 300.4);
Tailwind
colors: {
  custom: {
    50: '#8664a8',
    500: '#512783',
    950: '#000000',
  },
}
SCSS
$custom: #512783;
$custom-light: #8664a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512783",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 267.391,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.1468,
    "h": 300.4
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#512783
secondary
#87B254
accent
#DD4A9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512783

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

Preview Lab → · Contrast checker → · Palette generator →

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