#512688#512688

#512688 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.154 H 299.0°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#512688
RGBrgb(81, 38, 136)
HSLhsl(266, 56%, 34%)
HSVhsv(266, 72%, 53%)
CMYKcmyk(40.4%, 72.1%, 0%, 46.7%)
CIE-LABlab(26.49, 40.73, -47.20)
CIE-LCHlch(26.49, 62.34, 310.79°)
OKLaboklab(38.43% 0.0747 -0.1347)
OKLCHoklch(38.43% 0.154 299)
XYZxyz(8.5293, 4.9130, 23.7867)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512688 #5D8826
analogous
#262C88 #512688 #822688
triadic
#512688 #885126 #268851
tetradic
#512688 #88262C #5D8826 #268882
square
#512688 #88262C #5D8826 #268882
split-complementary
#512688 #888226 #2C8826
monochromatic
#180B28 #351958 #512688 #6D33B8 #8D58D0

Accessibility & contrast

On white

10.59
#512688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#512688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512688
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512688#FFFFFF#000000##FFFFFF
##5126881.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#443E54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512688;
/* rgb */ color: rgb(81, 38, 136);
/* oklch */ color: oklch(38.4% 0.154 299.0);
Tailwind
colors: {
  custom: {
    50: '#8764ab',
    500: '#512688',
    950: '#000000',
  },
}
SCSS
$custom: #512688;
$custom-light: #8764ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512688",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 266.327,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38429,
    "c": 0.15402,
    "h": 299
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#512688
secondary
#8BB555
accent
#E0489D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512688

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

Preview Lab → · Contrast checker → · Palette generator →

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