#512A90#512A90

#512A90 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.158 H 295.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#512A90
RGBrgb(81, 42, 144)
HSLhsl(263, 55%, 36%)
HSVhsv(263, 71%, 56%)
CMYKcmyk(43.8%, 70.8%, 0%, 43.5%)
CIE-LABlab(27.90, 40.81, -49.87)
CIE-LCHlch(27.90, 64.44, 309.30°)
OKLaboklab(39.64% 0.069 -0.1426)
OKLCHoklch(39.64% 0.158 295.8)
XYZxyz(9.2540, 5.4187, 26.9385)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512A90 #69902A
analogous
#2A3690 #512A90 #842A90
triadic
#512A90 #90512A #2A9051
tetradic
#512A90 #902A36 #69902A #2A9084
square
#512A90 #902A36 #69902A #2A9084
split-complementary
#512A90 #90842A #36902A
monochromatic
#1C0E31 #361C61 #512A90 #6C38BF #8D63D1

Accessibility & contrast

On white

10.08
#512A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#512A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512A90
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512A90#FFFFFF#000000##FFFFFF
##512A901.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#40435A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512a90;
/* rgb */ color: rgb(81, 42, 144);
/* oklch */ color: oklch(39.6% 0.158 295.8);
Tailwind
colors: {
  custom: {
    50: '#8867b1',
    500: '#512a90',
    950: '#000000',
  },
}
SCSS
$custom: #512a90;
$custom-light: #8867b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512a90",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 262.941,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3964,
    "c": 0.1584,
    "h": 295.8
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#512A90
secondary
#95B75E
accent
#DE4AA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512A90

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

Preview Lab → · Contrast checker → · Palette generator →

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