#512189#512189

#512189 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.161 H 299.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#512189
RGBrgb(81, 33, 137)
HSLhsl(268, 61%, 33%)
HSVhsv(268, 76%, 54%)
CMYKcmyk(40.9%, 75.9%, 0%, 46.3%)
CIE-LABlab(25.69, 43.46, -49.12)
CIE-LCHlch(25.69, 65.58, 311.50°)
OKLaboklab(37.89% 0.0795 -0.1403)
OKLCHoklch(37.89% 0.161 299.5)
XYZxyz(8.4514, 4.6431, 24.1130)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512189 #598921
analogous
#212589 #512189 #852189
triadic
#512189 #895121 #218951
tetradic
#512189 #892125 #598921 #218985
square
#512189 #892125 #598921 #218985
split-complementary
#512189 #898521 #258921
monochromatic
#170926 #341558 #512189 #6E2DBA #8D50D5

Accessibility & contrast

On white

10.89
#512189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#512189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512189
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512189#FFFFFF#000000##FFFFFF
##5121891.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#443C53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512189;
/* rgb */ color: rgb(81, 33, 137);
/* oklch */ color: oklch(37.9% 0.161 299.5);
Tailwind
colors: {
  custom: {
    50: '#8761ac',
    500: '#512189',
    950: '#000000',
  },
}
SCSS
$custom: #512189;
$custom-light: #8761ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512189",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 267.692,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37893,
    "c": 0.16129,
    "h": 299.5
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#512189
secondary
#87B84E
accent
#E4449A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512189

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

Preview Lab → · Contrast checker → · Palette generator →

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