#512390#512390

#512390 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.167 H 297.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#512390
RGBrgb(81, 35, 144)
HSLhsl(265, 61%, 35%)
HSVhsv(265, 76%, 56%)
CMYKcmyk(43.8%, 75.7%, 0%, 43.5%)
CIE-LABlab(26.63, 44.36, -51.93)
CIE-LCHlch(26.63, 68.30, 310.50°)
OKLaboklab(38.75% 0.0759 -0.1486)
OKLCHoklch(38.75% 0.167 297.1)
XYZxyz(9.0271, 4.9648, 26.8629)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512390 #629023
analogous
#232C90 #512390 #872390
triadic
#512390 #905123 #239051
tetradic
#512390 #90232C #629023 #239087
square
#512390 #90232C #629023 #239087
split-complementary
#512390 #908723 #2C9023
monochromatic
#1A0B2E #35175F #512390 #6D2FC1 #8D57D6

Accessibility & contrast

On white

10.54
#512390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#512390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512390
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512390#FFFFFF#000000##FFFFFF
##5123901.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#413F58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512390;
/* rgb */ color: rgb(81, 35, 144);
/* oklch */ color: oklch(38.7% 0.167 297.1);
Tailwind
colors: {
  custom: {
    50: '#8863b1',
    500: '#512390',
    950: '#000000',
  },
}
SCSS
$custom: #512390;
$custom-light: #8863b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512390",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 265.321,
    "s": 60.894,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.16687,
    "h": 297.1
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

primary
#512390
secondary
#8FBA54
accent
#E444A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512390

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

Preview Lab → · Contrast checker → · Palette generator →

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