#512289#512289

#512289 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.160 H 299.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#512289
RGBrgb(81, 34, 137)
HSLhsl(267, 60%, 34%)
HSVhsv(267, 75%, 54%)
CMYKcmyk(40.9%, 75.2%, 0%, 46.3%)
CIE-LABlab(25.86, 42.98, -48.84)
CIE-LCHlch(25.86, 65.06, 311.35°)
OKLaboklab(38.01% 0.0786 -0.1395)
OKLCHoklch(38.01% 0.16 299.4)
XYZxyz(8.4796, 4.6994, 24.1224)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512289 #5A8922
analogous
#222689 #512289 #842289
triadic
#512289 #895122 #228951
tetradic
#512289 #892226 #5A8922 #228984
square
#512289 #892226 #5A8922 #228984
split-complementary
#512289 #898422 #268922
monochromatic
#170A27 #341658 #512289 #6E2EBA #8D51D4

Accessibility & contrast

On white

10.82
#512289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#512289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512289
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512289#FFFFFF#000000##FFFFFF
##5122891.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.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: #512289;
/* rgb */ color: rgb(81, 34, 137);
/* oklch */ color: oklch(38.0% 0.160 299.4);
Tailwind
colors: {
  custom: {
    50: '#8762ac',
    500: '#512289',
    950: '#000000',
  },
}
SCSS
$custom: #512289;
$custom-light: #8762ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512289",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 267.379,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38012,
    "c": 0.16011,
    "h": 299.4
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#512289
secondary
#88B84F
accent
#E3449B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512289

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

Preview Lab → · Contrast checker → · Palette generator →

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