#512985#512985

#512985 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.146 H 299.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#512985
RGBrgb(81, 41, 133)
HSLhsl(266, 53%, 34%)
HSVhsv(266, 69%, 52%)
CMYKcmyk(39.1%, 69.2%, 0%, 47.8%)
CIE-LABlab(26.82, 38.33, -44.79)
CIE-LCHlch(26.82, 58.95, 310.55°)
OKLaboklab(38.59% 0.0718 -0.1277)
OKLCHoklch(38.59% 0.146 299.4)
XYZxyz(8.4189, 5.0286, 22.7128)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512985 #5D8529
analogous
#292F85 #512985 #7F2985
triadic
#512985 #855129 #298551
tetradic
#512985 #85292F #5D8529 #29857F
square
#512985 #85292F #5D8529 #29857F
split-complementary
#512985 #857F29 #2F8529
monochromatic
#180C27 #351B56 #512985 #6D37B4 #8D5CCD

Accessibility & contrast

On white

10.47
#512985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512985
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512985#FFFFFF#000000##FFFFFF
##5129851.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#453E53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512985;
/* rgb */ color: rgb(81, 41, 133);
/* oklch */ color: oklch(38.6% 0.146 299.4);
Tailwind
colors: {
  custom: {
    50: '#8666a9',
    500: '#512985',
    950: '#000000',
  },
}
SCSS
$custom: #512985;
$custom-light: #8666a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512985",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 266.087,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38589,
    "c": 0.14647,
    "h": 299.4
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#512985
secondary
#8BB258
accent
#DC4C9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512985

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

Preview Lab → · Contrast checker → · Palette generator →

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