#512085#512085

#512085 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.158 H 301.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#512085
RGBrgb(81, 32, 133)
HSLhsl(269, 61%, 32%)
HSVhsv(269, 76%, 52%)
CMYKcmyk(39.1%, 75.9%, 0%, 47.8%)
CIE-LABlab(25.19, 42.89, -47.44)
CIE-LCHlch(25.19, 63.96, 312.12°)
OKLaboklab(37.43% 0.0814 -0.1354)
OKLCHoklch(37.43% 0.158 301)
XYZxyz(8.1425, 4.4758, 22.6207)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512085 #548520
analogous
#202285 #512085 #842085
triadic
#512085 #855120 #208551
tetradic
#512085 #852022 #548520 #208584
square
#512085 #852022 #548520 #208584
split-complementary
#512085 #858420 #228520
monochromatic
#150822 #331454 #512085 #6F2CB6 #8E4CD4

Accessibility & contrast

On white

11.08
#512085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#512085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512085
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512085#FFFFFF#000000##FFFFFF
##5120851.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#453A51
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512085;
/* rgb */ color: rgb(81, 32, 133);
/* oklch */ color: oklch(37.4% 0.158 301.0);
Tailwind
colors: {
  custom: {
    50: '#8761a9',
    500: '#512085',
    950: '#000000',
  },
}
SCSS
$custom: #512085;
$custom-light: #8761a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512085",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 269.109,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.15799,
    "h": 301
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#512085
secondary
#82B74A
accent
#E44396
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512085

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

Preview Lab → · Contrast checker → · Palette generator →

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