#512392#512392

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

Color values

HEX#512392
RGBrgb(81, 35, 146)
HSLhsl(265, 61%, 35%)
HSVhsv(265, 76%, 57%)
CMYKcmyk(44.5%, 76%, 0%, 42.7%)
CIE-LABlab(26.81, 44.89, -52.88)
CIE-LCHlch(26.81, 69.36, 310.33°)
OKLaboklab(38.92% 0.0754 -0.1514)
OKLCHoklch(38.92% 0.169 296.5)
XYZxyz(9.1813, 5.0265, 27.6750)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512392 #649223
analogous
#232C92 #512392 #882392
triadic
#512392 #925123 #239251
tetradic
#512392 #92232C #649223 #239288
square
#512392 #92232C #649223 #239288
split-complementary
#512392 #928823 #2C9223
monochromatic
#1A0B2F #361761 #512392 #6C2FC3 #8D58D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512392#FFFFFF#000000##FFFFFF
##5123921.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)
#004095
Deuteranopia (green-blind)
#003E90
Tritanopia (blue-blind)
#404059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512392;
/* rgb */ color: rgb(81, 35, 146);
/* oklch */ color: oklch(38.9% 0.169 296.5);
Tailwind
colors: {
  custom: {
    50: '#8863b3',
    500: '#512392',
    950: '#000000',
  },
}
SCSS
$custom: #512392;
$custom-light: #8863b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512392",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 264.865,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38923,
    "c": 0.16914,
    "h": 296.5
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#512392
secondary
#91BB55
accent
#E443A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512392

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

Preview Lab → · Contrast checker → · Palette generator →

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