#512E88#512E88

#512E88 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.143 H 297.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#512E88
RGBrgb(81, 46, 136)
HSLhsl(263, 49%, 36%)
HSVhsv(263, 66%, 53%)
CMYKcmyk(40.4%, 66.2%, 0%, 46.7%)
CIE-LABlab(28.06, 36.38, -44.64)
CIE-LCHlch(28.06, 57.59, 309.18°)
OKLaboklab(39.56% 0.0656 -0.1272)
OKLCHoklch(39.56% 0.143 297.3)
XYZxyz(8.8131, 5.4807, 23.8813)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E88 #65882E
analogous
#2E3888 #512E88 #7E2E88
triadic
#512E88 #88512E #2E8851
tetradic
#512E88 #882E38 #65882E #2E887E
square
#512E88 #882E38 #65882E #2E887E
split-complementary
#512E88 #887E2E #38882E
monochromatic
#1B0F2D #361F5A #512E88 #6C3DB6 #8D65CB

Accessibility & contrast

On white

10.02
#512E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#512E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E88
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E88#FFFFFF#000000##FFFFFF
##512E881.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#444356
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512e88;
/* rgb */ color: rgb(81, 46, 136);
/* oklch */ color: oklch(39.6% 0.143 297.3);
Tailwind
colors: {
  custom: {
    50: '#8669ab',
    500: '#512e88',
    950: '#000000',
  },
}
SCSS
$custom: #512e88;
$custom-light: #8669ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512e88",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 263.333,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3956,
    "c": 0.14316,
    "h": 297.3
  },
  "luminance": 0.05481
}

Semantic roles & 50–950 ramp

primary
#512E88
secondary
#92B260
accent
#D94FA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512E88

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

Preview Lab → · Contrast checker → · Palette generator →

#512E88 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva