#512489#512489

#512489 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.158 H 299.0°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#512489
RGBrgb(81, 36, 137)
HSLhsl(267, 58%, 34%)
HSVhsv(267, 74%, 54%)
CMYKcmyk(40.9%, 73.7%, 0%, 46.3%)
CIE-LABlab(26.21, 42.00, -48.28)
CIE-LCHlch(26.21, 63.99, 311.02°)
OKLaboklab(38.26% 0.0766 -0.1379)
OKLCHoklch(38.26% 0.158 299)
XYZxyz(8.5384, 4.8171, 24.1420)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512489 #5C8924
analogous
#242989 #512489 #842489
triadic
#512489 #895124 #248951
tetradic
#512489 #892429 #5C8924 #248984
square
#512489 #892429 #5C8924 #248984
split-complementary
#512489 #898424 #298924
monochromatic
#180B28 #341759 #512489 #6E31B9 #8D55D2

Accessibility & contrast

On white

10.70
#512489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#512489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512489
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512489#FFFFFF#000000##FFFFFF
##5124891.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#443D54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512489;
/* rgb */ color: rgb(81, 36, 137);
/* oklch */ color: oklch(38.3% 0.158 299.0);
Tailwind
colors: {
  custom: {
    50: '#8763ac',
    500: '#512489',
    950: '#000000',
  },
}
SCSS
$custom: #512489;
$custom-light: #8763ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512489",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 266.733,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38257,
    "c": 0.1577,
    "h": 299
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#512489
secondary
#8AB752
accent
#E2469C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512489

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

Preview Lab → · Contrast checker → · Palette generator →

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