#512682#512682

#512682 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.147 H 301.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#512682
RGBrgb(81, 38, 130)
HSLhsl(268, 55%, 33%)
HSVhsv(268, 71%, 51%)
CMYKcmyk(37.7%, 70.8%, 0%, 49%)
CIE-LABlab(26.00, 39.12, -44.23)
CIE-LCHlch(26.00, 59.05, 311.49°)
OKLaboklab(37.93% 0.0757 -0.126)
OKLCHoklch(37.93% 0.147 301)
XYZxyz(8.1147, 4.7472, 21.6036)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512682 #578226
analogous
#262982 #512682 #7F2682
triadic
#512682 #825126 #268251
tetradic
#512682 #822629 #578226 #26827F
square
#512682 #822629 #578226 #26827F
split-complementary
#512682 #827F26 #298226
monochromatic
#160A23 #331853 #512682 #6F34B1 #8D55CD

Accessibility & contrast

On white

10.77
#512682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#512682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512682
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512682#FFFFFF#000000##FFFFFF
##5126821.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#463C51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512682;
/* rgb */ color: rgb(81, 38, 130);
/* oklch */ color: oklch(37.9% 0.147 301.0);
Tailwind
colors: {
  custom: {
    50: '#8664a7',
    500: '#512682',
    950: '#000000',
  },
}
SCSS
$custom: #512682;
$custom-light: #8664a7;
$custom-dark: #000000;
JSON
{
  "hex": "#512682",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 268.043,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37932,
    "c": 0.14697,
    "h": 301
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#512682
secondary
#85B252
accent
#DE4A99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #512682

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

Preview Lab → · Contrast checker → · Palette generator →

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