#512394#512394

#512394 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.171 H 295.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#512394
RGBrgb(81, 35, 148)
HSLhsl(264, 62%, 36%)
HSVhsv(264, 76%, 58%)
CMYKcmyk(45.3%, 76.4%, 0%, 42%)
CIE-LABlab(26.99, 45.42, -53.82)
CIE-LCHlch(26.99, 70.43, 310.16°)
OKLaboklab(39.1% 0.0749 -0.1541)
OKLCHoklch(39.1% 0.171 295.9)
XYZxyz(9.3382, 5.0893, 28.5016)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512394 #669423
analogous
#232D94 #512394 #892394
triadic
#512394 #945123 #239451
tetradic
#512394 #94232D #669423 #239489
square
#512394 #94232D #669423 #239489
split-complementary
#512394 #948923 #2D9423
monochromatic
#1B0C31 #361763 #512394 #6C2FC5 #8D5AD8

Accessibility & contrast

On white

10.41
#512394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512394
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512394#FFFFFF#000000##FFFFFF
##5123941.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#3F415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512394;
/* rgb */ color: rgb(81, 35, 148);
/* oklch */ color: oklch(39.1% 0.171 295.9);
Tailwind
colors: {
  custom: {
    50: '#8963b4',
    500: '#512394',
    950: '#000000',
  },
}
SCSS
$custom: #512394;
$custom-light: #8963b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512394",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 264.425,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.17139,
    "h": 295.9
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#512394
secondary
#93BC57
accent
#E543A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512394

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

Preview Lab → · Contrast checker → · Palette generator →

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