#512F90#512F90

#512F90 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.152 H 294.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#512F90
RGBrgb(81, 47, 144)
HSLhsl(261, 51%, 37%)
HSVhsv(261, 67%, 56%)
CMYKcmyk(43.8%, 67.4%, 0%, 43.5%)
CIE-LABlab(28.89, 38.08, -48.25)
CIE-LCHlch(28.89, 61.47, 308.28°)
OKLaboklab(40.35% 0.0636 -0.1378)
OKLCHoklch(40.35% 0.152 294.8)
XYZxyz(9.4425, 5.7957, 27.0013)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F90 #6E902F
analogous
#2F3E90 #512F90 #812F90
triadic
#512F90 #90512F #2F9051
tetradic
#512F90 #902F3E #6E902F #2F9081
square
#512F90 #902F3E #6E902F #2F9081
split-complementary
#512F90 #90812F #3E902F
monochromatic
#1D1134 #372062 #512F90 #6B3EBE #8E6BCF

Accessibility & contrast

On white

9.73
#512F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#512F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F90
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F90#FFFFFF#000000##FFFFFF
##512F901.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00438E
Tritanopia (blue-blind)
#40465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512f90;
/* rgb */ color: rgb(81, 47, 144);
/* oklch */ color: oklch(40.4% 0.152 294.8);
Tailwind
colors: {
  custom: {
    50: '#876ab1',
    500: '#512f90',
    950: '#000000',
  },
}
SCSS
$custom: #512f90;
$custom-light: #876ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#512f90",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 261.031,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40353,
    "c": 0.15179,
    "h": 294.8
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#512F90
secondary
#99B665
accent
#DA4EA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512F90

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

Preview Lab → · Contrast checker → · Palette generator →

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