#512690#512690

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

Color values

HEX#512690
RGBrgb(81, 38, 144)
HSLhsl(264, 58%, 36%)
HSVhsv(264, 74%, 56%)
CMYKcmyk(43.8%, 73.6%, 0%, 43.5%)
CIE-LABlab(27.16, 42.88, -51.08)
CIE-LCHlch(27.16, 66.70, 310.02°)
OKLaboklab(39.11% 0.0731 -0.1461)
OKLCHoklch(39.11% 0.163 296.6)
XYZxyz(9.1192, 5.1490, 26.8935)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512690 #659026
analogous
#263090 #512690 #862690
triadic
#512690 #905126 #269051
tetradic
#512690 #902630 #659026 #269086
square
#512690 #902630 #659026 #269086
split-complementary
#512690 #908626 #309026
monochromatic
#1B0C2F #361960 #512690 #6C33C0 #8D5CD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512690#FFFFFF#000000##FFFFFF
##5126901.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)
#004193
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#404158
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512690;
/* rgb */ color: rgb(81, 38, 144);
/* oklch */ color: oklch(39.1% 0.163 296.6);
Tailwind
colors: {
  custom: {
    50: '#8864b1',
    500: '#512690',
    950: '#000000',
  },
}
SCSS
$custom: #512690;
$custom-light: #8864b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512690",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 144
  },
  "hsl": {
    "h": 264.34,
    "s": 58.242,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39113,
    "c": 0.16336,
    "h": 296.6
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

primary
#512690
secondary
#92B959
accent
#E146A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512690

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

Preview Lab → · Contrast checker → · Palette generator →

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