#512089#512089

#512089 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.162 H 299.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#512089
RGBrgb(81, 32, 137)
HSLhsl(268, 62%, 33%)
HSVhsv(268, 77%, 54%)
CMYKcmyk(40.9%, 76.6%, 0%, 46.3%)
CIE-LABlab(25.53, 43.93, -49.39)
CIE-LCHlch(25.53, 66.09, 311.65°)
OKLaboklab(37.78% 0.0805 -0.1411)
OKLCHoklch(37.78% 0.162 299.7)
XYZxyz(8.4241, 4.5884, 24.1039)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512089 #588920
analogous
#202389 #512089 #852089
triadic
#512089 #895120 #208951
tetradic
#512089 #892023 #588920 #208985
square
#512089 #892023 #588920 #208985
split-complementary
#512089 #898520 #238920
monochromatic
#160926 #341457 #512089 #6E2CBB #8D4ED6

Accessibility & contrast

On white

10.95
#512089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#512089 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512089
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512089#FFFFFF#000000##FFFFFF
##5120891.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#443B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512089;
/* rgb */ color: rgb(81, 32, 137);
/* oklch */ color: oklch(37.8% 0.162 299.7);
Tailwind
colors: {
  custom: {
    50: '#8761ac',
    500: '#512089',
    950: '#000000',
  },
}
SCSS
$custom: #512089;
$custom-light: #8761ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512089",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 137
  },
  "hsl": {
    "h": 268,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37777,
    "c": 0.16244,
    "h": 299.7
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#512089
secondary
#86B94C
accent
#E54399
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512089

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

Preview Lab → · Contrast checker → · Palette generator →

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