#512989#512989

#512989 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.151 H 298.1°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#512989
RGBrgb(81, 41, 137)
HSLhsl(265, 54%, 35%)
HSVhsv(265, 70%, 54%)
CMYKcmyk(40.9%, 70.1%, 0%, 46.3%)
CIE-LABlab(27.13, 39.42, -46.77)
CIE-LCHlch(27.13, 61.17, 310.12°)
OKLaboklab(38.92% 0.0712 -0.1335)
OKLCHoklch(38.92% 0.151 298.1)
XYZxyz(8.7005, 5.1412, 24.1960)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512989 #618929
analogous
#293189 #512989 #812989
triadic
#512989 #895129 #298951
tetradic
#512989 #892931 #618929 #298981
square
#512989 #892931 #618929 #298981
split-complementary
#512989 #898129 #318929
monochromatic
#190D2B #351B5A #512989 #6D37B8 #8D5ECF

Accessibility & contrast

On white

10.35
#512989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#512989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512989
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512989#FFFFFF#000000##FFFFFF
##5129891.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#434055
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512989;
/* rgb */ color: rgb(81, 41, 137);
/* oklch */ color: oklch(38.9% 0.151 298.1);
Tailwind
colors: {
  custom: {
    50: '#8766ac',
    500: '#512989',
    950: '#000000',
  },
}
SCSS
$custom: #512989;
$custom-light: #8766ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512989",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 265,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38917,
    "c": 0.15129,
    "h": 298.1
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#512989
secondary
#8EB45A
accent
#DD4AA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512989

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

Preview Lab → · Contrast checker → · Palette generator →

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