#512378#512378

#512378 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.139 H 305.3°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#512378
RGBrgb(81, 35, 120)
HSLhsl(272, 55%, 30%)
HSVhsv(272, 71%, 47%)
CMYKcmyk(32.5%, 70.8%, 0%, 52.9%)
CIE-LABlab(24.66, 38.07, -40.08)
CIE-LCHlch(24.66, 55.28, 313.53°)
OKLaboklab(36.73% 0.0806 -0.1138)
OKLCHoklch(36.73% 0.139 305.3)
XYZxyz(7.3838, 4.3075, 18.2081)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512378 #4A7823
analogous
#272378 #512378 #782374
triadic
#512378 #785123 #237851
tetradic
#512378 #782723 #4A7823 #237478
square
#512378 #782723 #4A7823 #237478
split-complementary
#512378 #747823 #237827
monochromatic
#110719 #311549 #512378 #7131A7 #904BCA

Accessibility & contrast

On white

11.28
#512378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#512378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512378
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512378#FFFFFF#000000##FFFFFF
##5123781.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#063B76
Tritanopia (blue-blind)
#4A364A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512378;
/* rgb */ color: rgb(81, 35, 120);
/* oklch */ color: oklch(36.7% 0.139 305.3);
Tailwind
colors: {
  custom: {
    50: '#8662a0',
    500: '#512378',
    950: '#000000',
  },
}
SCSS
$custom: #512378;
$custom-light: #8662a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512378",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 272.471,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36729,
    "c": 0.1394,
    "h": 305.3
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#512378
secondary
#77AB4C
accent
#DE4A8E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #512378

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

Preview Lab → · Contrast checker → · Palette generator →

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