#512490#512490

#512490 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.166 H 296.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#512490
RGBrgb(81, 36, 144)
HSLhsl(265, 60%, 35%)
HSVhsv(265, 75%, 56%)
CMYKcmyk(43.8%, 75%, 0%, 43.5%)
CIE-LABlab(26.80, 43.87, -51.65)
CIE-LCHlch(26.80, 67.77, 310.35°)
OKLaboklab(38.87% 0.075 -0.1478)
OKLCHoklch(38.87% 0.166 296.9)
XYZxyz(9.0569, 5.0245, 26.8728)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512490 #639024
analogous
#242D90 #512490 #872490
triadic
#512490 #905124 #249051
tetradic
#512490 #90242D #639024 #249087
square
#512490 #90242D #639024 #249087
split-complementary
#512490 #908724 #2D9024
monochromatic
#1A0C2E #35185F #512490 #6D30C1 #8D59D5

Accessibility & contrast

On white

10.47
#512490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512490
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512490#FFFFFF#000000##FFFFFF
##5124901.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#414058
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512490;
/* rgb */ color: rgb(81, 36, 144);
/* oklch */ color: oklch(38.9% 0.166 296.9);
Tailwind
colors: {
  custom: {
    50: '#8863b1',
    500: '#512490',
    950: '#000000',
  },
}
SCSS
$custom: #512490;
$custom-light: #8863b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512490",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 265,
    "s": 60,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.16572,
    "h": 296.9
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#512490
secondary
#90BA56
accent
#E345A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512490

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

Preview Lab → · Contrast checker → · Palette generator →

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